diff --git a/dist/server/build.js b/dist/server/build.js old mode 100755 new mode 100644 diff --git a/dist/server/config/defaults/webpack.config.js b/dist/server/config/defaults/webpack.config.js index 3c533be04a22..15c35db9450a 100644 --- a/dist/server/config/defaults/webpack.config.js +++ b/dist/server/config/defaults/webpack.config.js @@ -22,7 +22,7 @@ module.exports = function (storybookBaseConfig) { newConfig.module.loaders = [].concat((0, _toConsumableArray3.default)(storybookBaseConfig.module.loaders), [{ test: /\.css?$/, include: _utils.includePaths, - loaders: [require.resolve('style-loader'), require.resolve('css-loader'), require.resolve('postcss-loader')] + loaders: [require.resolve('style-loader'), require.resolve('css-loader') + '?importLoaders=1', require.resolve('postcss-loader')] }, { test: /\.json$/, include: _utils.includePaths, diff --git a/src/server/config/defaults/webpack.config.js b/src/server/config/defaults/webpack.config.js index da960652925e..9d226d24999c 100644 --- a/src/server/config/defaults/webpack.config.js +++ b/src/server/config/defaults/webpack.config.js @@ -11,7 +11,7 @@ module.exports = (storybookBaseConfig) => { include: includePaths, loaders: [ require.resolve('style-loader'), - require.resolve('css-loader'), + `${require.resolve('css-loader')}?importLoaders=1`, require.resolve('postcss-loader'), ], },