Update to webpack 4

This commit is contained in:
Michael "Z" Goddard 2018-05-07 14:33:47 -04:00
parent effbee66f7
commit c713d02ee1
No known key found for this signature in database
GPG key ID: 762CD40DD5349872
2 changed files with 4 additions and 2 deletions

View file

@ -33,7 +33,7 @@
"devDependencies": {
"babel-core": "^6.26.0",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.1.2",
"babel-loader": "^7.1.4",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"eslint": "^4.6.1",
@ -46,6 +46,7 @@
"mkdirp": "^0.5.1",
"react-intl": "2.4.0",
"rimraf": "^2.6.2",
"webpack": "^3.5.6"
"webpack": "^4.6.0",
"webpack-cli": "^2.0.15"
}
}

View file

@ -1,6 +1,7 @@
const path = require('path');
module.exports = {
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
devtool: 'cheap-module-source-map',
module: {
rules: [{