Move general webpack to NODE_ENV

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-02-16 15:03:44 +01:00 committed by Roeland Jago Douma
parent 0b7b938a60
commit 01b6f5928e
No known key found for this signature in database
GPG key ID: F941078878347C0C
4 changed files with 4 additions and 7 deletions

Binary file not shown.

Binary file not shown.

View file

@ -12,10 +12,7 @@ module.exports = {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
hotReload: false
}
loader: 'vue-loader'
},
{
test: /\.css$/,

View file

@ -8,9 +8,9 @@
"test": "tests"
},
"scripts": {
"build": "webpack --progress --hide-modules --config webpack.prod.js",
"dev": "webpack --progress --watch --config webpack.dev.js",
"watch": "webpack --progress --watch --config webpack.dev.js"
"build": "NODE_ENV=production webpack --progress --hide-modules --config webpack.prod.js",
"dev": "NODE_ENV=development webpack --progress --watch --config webpack.dev.js",
"watch": "NODE_ENV=development webpack --progress --watch --config webpack.dev.js"
},
"repository": {
"type": "git",