Merge pull request #160 from gaearon/add-prod-shell

Add production mode to dev shell
This commit is contained in:
Brian Vaughn
2019-04-15 07:40:39 -07:00
committed by GitHub
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',