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
7be7ac75
authored
2019-11-01 11:49:10 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
84088acb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
vue.config.js
vue.config.js
View file @
7be7ac7
...
...
@@ -17,10 +17,11 @@ if (process.env.NODE_ENV === 'production') {
// 生产环境
webpack_public_path
=
process
.
env
.
VUE_APP_TITLE
;
// seo插件
plugins
.
push
(
new
PrerenderSPAPlugin
({
staticDir
:
path
.
join
(
__dirname
,
webpack_public_path
||
'dist'
),
// 如果没配置环境目录(生产),则写到目录dist
routes
:
[
'/'
,
'/demo'
,
'/about'
],
routes
:
[
'/'
,
'/demo'
,
'/about'
],
// 需要seo的目录 临时占位,后期再进行配置
renderer
:
new
Renderer
({
inject
:
{
foo
:
'bar'
...
...
Please
register
or
sign in
to post a comment