diff --git a/config/storybook/main.js b/config/storybook/main.js index 89ad8212..d2eb1cb1 100644 --- a/config/storybook/main.js +++ b/config/storybook/main.js @@ -21,5 +21,14 @@ module.exports = { '@storybook/addon-essentials', '@storybook/addon-knobs', '@storybook/addon-storysource' - ] + ], + webpackFinal: (config) => { + const scssRule = config.module.rules.find(({ test }) => typeof test.test === 'function' && test.test('.scss')) + // important to include scss to storybook build + if (scssRule) { + scssRule.sideEffects = true + } + + return config + } } diff --git a/package.json b/package.json index 42af85d6..004bd2a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soramitsu/soramitsu-js-ui", - "version": "1.0.1", + "version": "1.0.2", "private": false, "publishConfig": { "registry": "https://nexus.iroha.tech/repository/npm-soramitsu/"