Add production mode to dev shell

This commit is contained in:
Dan Abramov
2019-04-15 15:39:25 +01:00
parent 7489b8508b
commit 947e3c2c04
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -48,6 +48,7 @@
"prettier": "prettier --write '**/*.{js,json,css}'",
"prettier:ci": "prettier --check '**/*.{js,json,css}'",
"start": "cd ./shells/dev && opener ./index.html && webpack --config webpack.config.js --watch",
"start:prod": "cross-env NODE_ENV=production npm start",
"test": "jest",
"test-debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
"test:chrome": "node ./shells/browser/chrome/test",
+1 -1
View File
@@ -9,7 +9,7 @@ const GITHUB_URL = getGitHubURL();
const DEVTOOLS_VERSION = getVersionString();
module.exports = {
mode: 'development',
mode: __DEV__ ? 'development' : 'production',
devtool: false,
entry: {
app: './app/index.js',