Move general webpack to NODE_ENV
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
0b7b938a60
commit
01b6f5928e
4 changed files with 4 additions and 7 deletions
Binary file not shown.
Binary file not shown.
|
@ -12,10 +12,7 @@ module.exports = {
|
|||
rules: [
|
||||
{
|
||||
test: /\.vue$/,
|
||||
loader: 'vue-loader',
|
||||
options: {
|
||||
hotReload: false
|
||||
}
|
||||
loader: 'vue-loader'
|
||||
},
|
||||
{
|
||||
test: /\.css$/,
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue