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": {
"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",
"build": "NODE_ENV=production ./node_modules/.bin/webpack --progress --colors -p",
"lint": "eslint \"assets/js/*.js\""
},
"repository": {

@ -7,7 +7,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ManifestRevisionPlugin = require('manifest-revision-webpack-plugin');
// 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)
const publicHost = debug ? 'http://localhost:2992' : '';

Loading…
Cancel
Save