From c713d02ee129206f2d49dac398a008c5ef9b5a0a Mon Sep 17 00:00:00 2001 From: "Michael \"Z\" Goddard" Date: Mon, 7 May 2018 14:33:47 -0400 Subject: [PATCH] Update to webpack 4 --- package.json | 5 +++-- webpack.config.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a4f4f4e6..aad23f21 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/webpack.config.js b/webpack.config.js index 96d76004..c67db162 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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: [{