Skip to content

Commit

Permalink
Update webpack.
Browse files Browse the repository at this point in the history
  • Loading branch information
twisty committed Jun 18, 2018
1 parent 6a7690d commit dd27dca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
12 changes: 11 additions & 1 deletion examples/webpack.config.js
Expand Up @@ -3,6 +3,8 @@
const path = require('path');

module.exports = {
mode: 'production',

devtool: 'source-map',

entry: {
Expand All @@ -17,7 +19,15 @@ module.exports = {
},

module: {
loaders: [{test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader'}],
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
},
},
],
},

resolve: {
Expand Down
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -72,7 +72,7 @@
"eslint": "^4.6.1",
"eslint-config-airbnb": "^16.0.0",
"eslint-config-prettier": "^2.4.0",
"eslint-import-resolver-webpack": "^0.8.3",
"eslint-import-resolver-webpack": "^0.10.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-prettier": "^2.2.0",
Expand All @@ -87,8 +87,9 @@
"react-docs-markdown": "^0.4.0",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0",
"webpack": "^3.5.6",
"webpack-dev-server": "^2.8.1"
"webpack": "^4.12.0",
"webpack-cli": "^3.0.8",
"webpack-dev-server": "^3.1.4"
},
"config": {
"commitizen": {
Expand Down

0 comments on commit dd27dca

Please sign in to comment.