change NODE_ENV to "production"

master
Will Roberts 8 years ago
parent 1387c88ee9
commit ec25c0401b
  1. 2
      {{cookiecutter.app_name}}/package.json
  2. 2
      {{cookiecutter.app_name}}/webpack.config.js

@ -8,8 +8,8 @@
}, },
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "NODE_ENV=prod ./node_modules/.bin/webpack --progress --colors -p",
"start": "./node_modules/.bin/webpack-dev-server --port 2992 --hot --inline", "start": "./node_modules/.bin/webpack-dev-server --port 2992 --hot --inline",
"build": "NODE_ENV=production ./node_modules/.bin/webpack --progress --colors -p",
"lint": "eslint \"assets/js/*.js\"" "lint": "eslint \"assets/js/*.js\""
}, },
"repository": { "repository": {

@ -7,7 +7,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ManifestRevisionPlugin = require('manifest-revision-webpack-plugin'); const ManifestRevisionPlugin = require('manifest-revision-webpack-plugin');
// take debug mode from the environment // take debug mode from the environment
const debug = (process.env.NODE_ENV !== 'prod'); const debug = (process.env.NODE_ENV !== 'production');
// Development asset host (webpack dev server) // Development asset host (webpack dev server)
const publicHost = debug ? 'http://localhost:2992' : ''; const publicHost = debug ? 'http://localhost:2992' : '';

Loading…
Cancel
Save