Skip to content

Commit eb55502

Browse files
committed
chore(build): add --mode to webpack
1 parent 90b41ba commit eb55502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"description": "Uploads compiled assets to s3 after build",
55
"main": "dist/s3_plugin.js",
66
"scripts": {
7-
"build": "webpack",
7+
"build": "webpack --mode production",
88
"prepublishOnly": "npm run lint && npm run test && npm run build",
99
"test": "NODE_ENV='test' mocha -t 10000 --require babel-register",
1010
"lint": "eslint ./src ./test",
11-
"watch": "webpack --watch",
11+
"watch": "webpack --watch --mode development",
1212
"prep:major": "npm run build && npm version major",
1313
"prep:minor": "npm run build && npm version minor",
1414
"prep:patch": "npm run build && npm version patch"

0 commit comments

Comments
 (0)