Commit 6f4b5b1c authored by 夏彬's avatar 夏彬

添加生产环境vue配置

parent 320ebb78
...@@ -10,7 +10,10 @@ module.exports = { ...@@ -10,7 +10,10 @@ module.exports = {
__BASE_URL__: JSON.stringify('http://code.ibanshou.cn/songxia/'), __BASE_URL__: JSON.stringify('http://code.ibanshou.cn/songxia/'),
__SERVER_URL__: JSON.stringify('https://code.ibanshou.cn/'), __SERVER_URL__: JSON.stringify('https://code.ibanshou.cn/'),
__QINIU_URL__: JSON.stringify('http://img.2g.vgot.net/'), __QINIU_URL__: JSON.stringify('http://img.2g.vgot.net/'),
__NODE_ENV__: '"production"' __NODE_ENV__: '"production"',
'process.env': {
NODE_ENV: '"production"'
}
}), }),
new webpack.optimize.UglifyJsPlugin({ new webpack.optimize.UglifyJsPlugin({
compress: { compress: {
......
...@@ -10,7 +10,8 @@ module.exports = { ...@@ -10,7 +10,8 @@ module.exports = {
__BASE_URL__: JSON.stringify('http://testweb.pp.cc/songxia/'), __BASE_URL__: JSON.stringify('http://testweb.pp.cc/songxia/'),
__SERVER_URL__: JSON.stringify('http://testserv.pp.cc/wxherr/'), __SERVER_URL__: JSON.stringify('http://testserv.pp.cc/wxherr/'),
__QINIU_URL__: JSON.stringify('http://img.2g.vgot.net/'), __QINIU_URL__: JSON.stringify('http://img.2g.vgot.net/'),
__NODE_ENV__: '"test"' __NODE_ENV__: '"test"',
}), }),
new webpack.optimize.UglifyJsPlugin({ new webpack.optimize.UglifyJsPlugin({
compress: { compress: {
...@@ -20,6 +21,7 @@ module.exports = { ...@@ -20,6 +21,7 @@ module.exports = {
new webpack.LoaderOptionsPlugin({ new webpack.LoaderOptionsPlugin({
minimize: true minimize: true
}) })
], ],
devtool: '#source-map' devtool: '#source-map'
}; };
......
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