Skip to content

Commit 83d3c67

Browse files
stefanbuckjosephfrazier
authored andcommitted
Update webpack to v4 (OctoLinker#451)
1 parent 03cf6a2 commit 83d3c67

File tree

3 files changed

+1946
-135
lines changed

3 files changed

+1946
-135
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"version": "json -I -f assets/manifest.json -e \"this.version='`json -f package.json version`'\" && git add assets/manifest.json",
1414
"package": "yarn build && web-ext build --source-dir dist --artifacts-dir out --overwrite-dest",
1515
"release": "webstore upload --source dist --auto-publish",
16-
"build": "webpack",
16+
"build": "webpack --mode=production",
1717
"watch": "webpack --watch",
1818
"chrome-open": "yarn build && yarn chrome-launch --",
1919
"chrome-launch": "node scripts/chrome-launch.js",
@@ -37,7 +37,7 @@
3737
"babel-preset-jest": "^22.0.3",
3838
"chrome-launch": "^1.1.4",
3939
"chrome-webstore-upload-cli": "^1.1.1",
40-
"copy-webpack-plugin": "^4.1.0",
40+
"copy-webpack-plugin": "^4.4.2",
4141
"css-loader": "^0.28.7",
4242
"eslint": "^4.8.0",
4343
"eslint-config-airbnb": "^16.0.0",
@@ -56,7 +56,8 @@
5656
"sinon": "^4.0.1",
5757
"style-loader": "^0.19.0",
5858
"web-ext": "^2.0.0",
59-
"webpack": "^3.6.0"
59+
"webpack": "^4.0.1",
60+
"webpack-cli": "^2.0.9"
6061
},
6162
"optionalDependencies": {
6263
"fsevents": "1.1.2"

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const path = require('path');
22
const CopyWebpackPlugin = require('copy-webpack-plugin'); // eslint-disable-line
33

44
module.exports = {
5+
mode: 'development',
56
entry: {
67
app: './packages/core/app',
78
background: './packages/core/background/index',

0 commit comments

Comments
 (0)