Skip to content

Commit ad67144

Browse files
committed
package.json: add commands to build extension for prod and development
1 parent 5d9222c commit ad67144

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

template/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "{{ description }}",
55
"author": "{{ author }}",
66
"scripts": {
7-
"build": "webpack --config webpack.config.js --progress --hide-modules",
7+
"build": "cross-env NODE_ENV=production webpack --config webpack.config.js --progress --hide-modules",
8+
"build:env": "cross-env NODE_ENV=development webpack --config webpack.config.js --progress --hide-modules",
89
"build-zip": "node scripts/build-zip.js",
910
"watch": "npm run build -- --watch"
1011
},
@@ -19,6 +20,7 @@
1920
"babel-loader": "^7.1.1",
2021
"babel-preset-latest": "^6.24.1",
2122
"copy-webpack-plugin": "^4.0.1",
23+
"cross-env": "^5.0.5",
2224
"css-loader": "^0.28.4",
2325
"extract-text-webpack-plugin": "^3.0.0",
2426
"file-loader": "^0.11.2",

0 commit comments

Comments
 (0)