Commit 9c449c70 by wujiabao

测试

parent d7681837
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
*/ */
module.exports = { module.exports = {
domain: 'https://test.mjitech.com/web/', domain: 'https://test.mjitech.com/web/',
uploadImg : 'https://preprod.mjitech.com/static/uploadTrouble' uploadImg : 'https://test.mjitech.com/static/uploadTrouble'
} }
\ No newline at end of file
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
*/ */
module.exports = { module.exports = {
domain: 'https://www.mjitech.com/web/', domain: 'https://www.mjitech.com/web/',
uploadImg : "https://preprod.mjitech.com/static/uploadTrouble" uploadImg : "https://www.mjitech.com/static/uploadTrouble"
} }
\ No newline at end of file
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
*/ */
module.exports = { module.exports = {
domain: 'https://test.mjitech.com/web/', domain: 'https://test.mjitech.com/web/',
uploadImg : 'https://preprod.mjitech.com/static/uploadTrouble' uploadImg : 'https://test.mjitech.com/static/uploadTrouble'
} }
\ No newline at end of file
...@@ -118,6 +118,35 @@ let envConfig = { ...@@ -118,6 +118,35 @@ let envConfig = {
] ]
}, },
'test': {
output:{
path : path.join(__dirname,'./static'),
filename : 'bundle-[hash:6].js'
},
plugins:[
new webpack.optimize.UglifyJsPlugin(), //js压缩
new webpack.optimize.CommonsChunkPlugin({
name : "vendor",
filename : "vendor.bundle.js"
}), //分割共有模块和代码模块
new webpack.optimize.AggressiveMergingPlugin(),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production'),
PAD_ENV: JSON.stringify('test')
},
'BASEREM' : 120,
'CURVERSION' : JSON.stringify(curversion)
}),
new webpack.ProvidePlugin({
ENV: __dirname + ('/client/env/test'),
UTILPATH:__dirname+'/client/util/util',
CONFIG:__dirname+'/client/config/index',
}),
new webpack.NoEmitOnErrorsPlugin(), //配置了NoErrorsPlugin插件,用来跳过编译时出错的代码并记录,使编译后运行时的包不会发生错误
]
},
'dev':{ 'dev':{
output: { output: {
path: path.join(__dirname, './static'), path: path.join(__dirname, './static'),
......
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