Commit 0f89fc02 by ouyanghui

fix

parent 0498a56c
......@@ -7,7 +7,7 @@
"scripts": {
"pretest": "npm run clean",
"test": "cross-env NODE_ENV=production PAD_ENV=test webpack --env=test --version=2.0.4 --progress --color",
"clean": "",
"clean": "rm -rf static/*",
"start": "cross-env NODE_ENV=development PAD_ENV=development webpack-dev-server --version=2.0.4 --env=dev -d --history-api-fallback --hot --inline --progress --colors --port 6999 --host 0.0.0.0",
"prebuild": "npm run clean",
"build": "cross-env NODE_ENV=production PAD_ENV=production webpack --env=build --version=2.0.4 --progress --color",
......
......@@ -92,8 +92,7 @@ let envConfig = {
'build':{
output:{
path : path.join(__dirname,'./static'),
// filename : 'bundle-[hash:6].js'
filename : 'bundle.js'
filename : 'bundle-[hash:6].js'
},
plugins:[
new webpack.optimize.UglifyJsPlugin(), //js压缩
......@@ -122,8 +121,7 @@ let envConfig = {
'preprod':{
output:{
path : path.join(__dirname,'./static'),
// filename : 'bundle-[hash:6].js'
filename : 'bundle.js'
filename : 'bundle-[hash:6].js'
},
plugins:[
new webpack.optimize.UglifyJsPlugin(), //js压缩
......@@ -152,8 +150,7 @@ let envConfig = {
'test': {
output:{
path : path.join(__dirname,'./static'),
// filename : 'bundle-[hash:6].js'
filename : 'bundle.js'
filename : 'bundle-[hash:6].js'
},
plugins:[
new webpack.optimize.UglifyJsPlugin(), //js压缩
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment