Skip to content

Commit

Permalink
Add postcss and autoprefixer to storybook build (#99)
Browse files Browse the repository at this point in the history
Add postcss and autoprefixer to storybook build
  • Loading branch information
jonambas authored Jan 26, 2018
2 parents adb2074 + 8719e7e commit bf8950a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('path');
const autoprefixer = require('autoprefixer');

module.exports = {
module: {
Expand All @@ -18,6 +19,14 @@ module.exports = {
localIdentName: '[name]__[local]___[hash:base64:5]'
},
},
{
loader: require.resolve('postcss-loader'),
options: {
plugins: () => [
autoprefixer()
]
}
},
{
loader: require.resolve('sass-loader')
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"fs-extra": "^3.0.1",
"jest": "^20.0.3",
"node-sass": "^4.5.2",
"postcss-loader": "^2.0.10",
"postcss-modules": "^0.7.0",
"postcss-modules-scope": "^1.0.2",
"prop-types": "^15.5.10",
Expand Down

0 comments on commit bf8950a

Please sign in to comment.