Skip to content

Commit

Permalink
Update to 9.x (#6)
Browse files Browse the repository at this point in the history
* Update to react-styleguidist 9.0.8, react & react-dom 16.8.6, webpack 4.30.0

* Update Webpack config for v4, adding css-loader & style-loader as dependencies
  • Loading branch information
eemeli authored and Artem Sapegin committed Apr 16, 2019
1 parent 39260e6 commit 733cec4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"css-loader": "^2.1.1",
"prop-types": "^15.6.1",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-styleguidist": "^7.0.16",
"webpack": "^3.4.1"
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-styleguidist": "^9.0.8",
"style-loader": "^0.23.1",
"webpack": "^4.30.0"
},
"scripts": {
"start": "styleguidist server",
Expand Down
13 changes: 11 additions & 2 deletions styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@ module.exports = {
defaultExample: true,
webpackConfig: {
module: {
loaders: [
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
{
test: /\.css$/,
loader: 'style-loader!css-loader?modules&importLoaders=1',
use: [
'style-loader',
{
loader: 'css-loader',
options: {
importLoaders: 1,
modules: true
}
},
],
},
],
},
Expand Down

0 comments on commit 733cec4

Please sign in to comment.