Skip to content

Commit 38aee60

Browse files
author
Liza K
committed
Add scss support - requires #53976 to be merged to work
1 parent 47b7bef commit 38aee60

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

packages/kbn-plugin-generator/sao_template/sao.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ module.exports = function({ name, targetPath, isKibanaPlugin }) {
6363
},
6464
},
6565
filters: {
66+
'public/**/index.scss': 'generateScss',
6667
'public/**/*': 'generateApp',
6768
'server/**/*': 'generateApi',
6869
'translations/**/*': 'generateTranslations',
@@ -84,6 +85,7 @@ module.exports = function({ name, targetPath, isKibanaPlugin }) {
8485
upperCamelCaseName: name.charAt(0).toUpperCase() + camelCase(name).slice(1),
8586
hasUi: !!answers.generateApp,
8687
hasServer: !!answers.generateApi,
88+
hasScss: !!answers.generateScss,
8789
relRoot: isKibanaPlugin ? '../../../..' : '../../..',
8890
},
8991
answers

packages/kbn-plugin-generator/sao_template/template/public/index.scss

Whitespace-only changes.

packages/kbn-plugin-generator/sao_template/template/public/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<%_ if (hasScss) { -%>
2+
import './index.scss';
3+
<%_ } -%>
4+
15
import { <%= upperCamelCaseName %>PublicPlugin } from './plugin';
26

37
export function plugin() {

0 commit comments

Comments
 (0)