Commit 12e97e6f authored by 杨培's avatar 杨培

修复不同平台的 publicPath 错误

parent e2d8a783
...@@ -2,12 +2,13 @@ var webpack = require('webpack'); ...@@ -2,12 +2,13 @@ var webpack = require('webpack');
module.exports = { module.exports = {
output: { output: {
chunkFilename: '[name].[chunkhash].js' chunkFilename: '[name].[chunkhash].js',
publicPath: '/songxia/'
}, },
plugins: [ plugins: [
new webpack.DefinePlugin({ new webpack.DefinePlugin({
__BASE_URL__: JSON.stringify('//code.ibanshou.cn/songxia/'), __BASE_URL__: JSON.stringify('http://code.ibanshou.cn/songxia/'),
__SERVER_URL__: JSON.stringify('//code.ibanshou.cn/'), __SERVER_URL__: JSON.stringify('http://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"'
}), }),
......
...@@ -2,12 +2,13 @@ var webpack = require('webpack'); ...@@ -2,12 +2,13 @@ var webpack = require('webpack');
module.exports = { module.exports = {
output: { output: {
chunkFilename: '[name].[chunkhash].js' chunkFilename: '[name].[chunkhash].js',
publicPath: '/songxia/'
}, },
plugins: [ plugins: [
new webpack.DefinePlugin({ new webpack.DefinePlugin({
__BASE_URL__: JSON.stringify('//testweb.pp.cc/songxia/'), __BASE_URL__: JSON.stringify('http://testweb.pp.cc/songxia/'),
__SERVER_URL__: JSON.stringify('//code.ibanshou.cn/'), __SERVER_URL__: JSON.stringify('http://code.ibanshou.cn/'),
__QINIU_URL__: JSON.stringify('http://img.2g.vgot.net/'), __QINIU_URL__: JSON.stringify('http://img.2g.vgot.net/'),
__NODE_ENV__: '"test"' __NODE_ENV__: '"test"'
}), }),
......
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