Skip to content

Commit

Permalink
Add scss support - requires #53976 to be merged to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Jan 29, 2020
1 parent 47b7bef commit 38aee60
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/kbn-plugin-generator/sao_template/sao.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module.exports = function({ name, targetPath, isKibanaPlugin }) {
},
},
filters: {
'public/**/index.scss': 'generateScss',
'public/**/*': 'generateApp',
'server/**/*': 'generateApi',
'translations/**/*': 'generateTranslations',
Expand All @@ -84,6 +85,7 @@ module.exports = function({ name, targetPath, isKibanaPlugin }) {
upperCamelCaseName: name.charAt(0).toUpperCase() + camelCase(name).slice(1),
hasUi: !!answers.generateApp,
hasServer: !!answers.generateApi,
hasScss: !!answers.generateScss,
relRoot: isKibanaPlugin ? '../../../..' : '../../..',
},
answers
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<%_ if (hasScss) { -%>
import './index.scss';
<%_ } -%>

import { <%= upperCamelCaseName %>PublicPlugin } from './plugin';

export function plugin() {
Expand Down

0 comments on commit 38aee60

Please sign in to comment.