Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
songxia-wxherr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
songxia-wxherr
Commits
12e97e6f
Commit
12e97e6f
authored
Jun 15, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复不同平台的 publicPath 错误
parent
e2d8a783
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
prod.js
config/prod.js
+4
-3
test.js
config/test.js
+4
-3
No files found.
config/prod.js
View file @
12e97e6f
...
...
@@ -2,12 +2,13 @@ var webpack = require('webpack');
module
.
exports
=
{
output
:
{
chunkFilename
:
'[name].[chunkhash].js'
chunkFilename
:
'[name].[chunkhash].js'
,
publicPath
:
'/songxia/'
},
plugins
:
[
new
webpack
.
DefinePlugin
({
__BASE_URL__
:
JSON
.
stringify
(
'//code.ibanshou.cn/songxia/'
),
__SERVER_URL__
:
JSON
.
stringify
(
'//code.ibanshou.cn/'
),
__BASE_URL__
:
JSON
.
stringify
(
'
http:
//code.ibanshou.cn/songxia/'
),
__SERVER_URL__
:
JSON
.
stringify
(
'
http:
//code.ibanshou.cn/'
),
__QINIU_URL__
:
JSON
.
stringify
(
'http://img.2g.vgot.net/'
),
__NODE_ENV__
:
'"production"'
}),
...
...
config/test.js
View file @
12e97e6f
...
...
@@ -2,12 +2,13 @@ var webpack = require('webpack');
module
.
exports
=
{
output
:
{
chunkFilename
:
'[name].[chunkhash].js'
chunkFilename
:
'[name].[chunkhash].js'
,
publicPath
:
'/songxia/'
},
plugins
:
[
new
webpack
.
DefinePlugin
({
__BASE_URL__
:
JSON
.
stringify
(
'//testweb.pp.cc/songxia/'
),
__SERVER_URL__
:
JSON
.
stringify
(
'//code.ibanshou.cn/'
),
__BASE_URL__
:
JSON
.
stringify
(
'
http:
//testweb.pp.cc/songxia/'
),
__SERVER_URL__
:
JSON
.
stringify
(
'
http:
//code.ibanshou.cn/'
),
__QINIU_URL__
:
JSON
.
stringify
(
'http://img.2g.vgot.net/'
),
__NODE_ENV__
:
'"test"'
}),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment