mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add production mode to dev shell
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user