Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7f539609
authored
2019-10-29 19:41:02 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
916b069a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
.env.fev
.env.build → .env.sandbox
.gitignore
package.json
vue.config.js
.env.fev
deleted
100644 → 0
View file @
916b069
NODE_ENV = 'production'
VUE_APP_TITLE = 'fev'
.env.
build
→
.env.
sandbox
View file @
7f53960
NODE_ENV = 'production'
VUE_APP_TITLE = 'production'
\ No newline at end of file
VUE_APP_TITLE = 'sandbox'
...
...
.gitignore
View file @
7f53960
...
...
@@ -2,6 +2,7 @@
node_modules
/dist
/fev
/sandbox
# local env files
.env.local
...
...
package.json
View file @
7f53960
...
...
@@ -6,7 +6,7 @@
"serve"
:
"vue-cli-service serve"
,
"dev"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build --no clean"
,
"
fev"
:
"vue-cli-service build --mode fev
"
,
"
sandbox"
:
"vue-cli-service build --mode sandbox
"
,
"lint"
:
"vue-cli-service lint"
,
"oss"
:
"node build/oss-released.js"
},
...
...
vue.config.js
View file @
7f53960
...
...
@@ -15,10 +15,11 @@ let plugins = [
if
(
process
.
env
.
NODE_ENV
===
'production'
)
{
// 生产环境
webpack_public_path
=
process
.
env
.
VUE_APP_TITLE
webpack_public_path
=
process
.
env
.
VUE_APP_TITLE
;
plugins
.
push
(
new
PrerenderSPAPlugin
({
staticDir
:
path
.
join
(
__dirname
,
'dist'
),
staticDir
:
path
.
join
(
__dirname
,
webpack_public_path
||
'dist'
),
// 如果没配置环境目录(生产),则写到目录dist
routes
:
[
'/'
,
'/demo'
,
'/about'
],
renderer
:
new
Renderer
({
inject
:
{
...
...
Please
register
or
sign in
to post a comment