Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
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
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄瑜
VueElementTemplate
Commits
2725285d
Commit
2725285d
authored
Sep 29, 2017
by
Pan
Committed by
花裤衩
Sep 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build_config bug
parent
a842a4b4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
33 deletions
+33
-33
webpack.prod.conf.js
build/webpack.prod.conf.js
+1
-1
index.js
config/index.js
+30
-30
prod.env.js
config/prod.env.js
+1
-1
package.json
package.json
+1
-1
No files found.
build/webpack.prod.conf.js
View file @
2725285d
...
@@ -9,7 +9,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin')
...
@@ -9,7 +9,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin')
var
ExtractTextPlugin
=
require
(
'extract-text-webpack-plugin'
)
var
ExtractTextPlugin
=
require
(
'extract-text-webpack-plugin'
)
var
OptimizeCSSPlugin
=
require
(
'optimize-css-assets-webpack-plugin'
)
var
OptimizeCSSPlugin
=
require
(
'optimize-css-assets-webpack-plugin'
)
var
env
=
config
.
build
[
process
.
env
.
config_env
+
'Env'
]
var
env
=
config
.
build
[
process
.
env
.
env_config
+
'Env'
]
function
resolveApp
(
relativePath
)
{
function
resolveApp
(
relativePath
)
{
return
path
.
resolve
(
relativePath
);
return
path
.
resolve
(
relativePath
);
...
...
config/index.js
View file @
2725285d
config/prod.env.js
View file @
2725285d
module
.
exports
=
{
module
.
exports
=
{
NODE_ENV
:
'"production"'
,
NODE_ENV
:
'"production"'
,
ENV_
MODE
:
'"prod"'
,
ENV_
CONFIG
:
'"prod"'
,
BASE_API
:
'"https://api-prod"'
,
BASE_API
:
'"https://api-prod"'
,
APP_ORIGIN
:
'"https://wallstreetcn.com"'
APP_ORIGIN
:
'"https://wallstreetcn.com"'
};
};
package.json
View file @
2725285d
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
"dev"
:
"node build/dev-server.js"
,
"dev"
:
"node build/dev-server.js"
,
"build:prod"
:
"cross-env NODE_ENV=production env_config=prod node build/build.js"
,
"build:prod"
:
"cross-env NODE_ENV=production env_config=prod node build/build.js"
,
"build:sit"
:
"cross-env NODE_ENV=production env_config=sit node build/build.js"
,
"build:sit"
:
"cross-env NODE_ENV=production env_config=sit node build/build.js"
,
"build:sit-preview"
:
"cross-env NODE_ENV=
sit
env_config=sit npm_config_preview=true npm_config_report=true node build/build.js"
,
"build:sit-preview"
:
"cross-env NODE_ENV=
production
env_config=sit npm_config_preview=true npm_config_report=true node build/build.js"
,
"lint"
:
"eslint --ext .js,.vue src"
"lint"
:
"eslint --ext .js,.vue src"
},
},
"dependencies"
:
{
"dependencies"
:
{
...
...
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