Skip to content

Commit

Permalink
Allow to use postcss for CSS @imports. (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoda authored Oct 24, 2016
1 parent 26f64e4 commit 3f30f0c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Empty file modified dist/server/build.js
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion dist/server/config/defaults/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/server/config/defaults/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
],
},
Expand Down

0 comments on commit 3f30f0c

Please sign in to comment.