7be7ac75 by simon

默认提交

1 parent 84088acb
...@@ -17,10 +17,11 @@ if (process.env.NODE_ENV === 'production') { ...@@ -17,10 +17,11 @@ if (process.env.NODE_ENV === 'production') {
17 // 生产环境 17 // 生产环境
18 webpack_public_path = process.env.VUE_APP_TITLE; 18 webpack_public_path = process.env.VUE_APP_TITLE;
19 19
20 // seo插件
20 plugins.push( 21 plugins.push(
21 new PrerenderSPAPlugin({ 22 new PrerenderSPAPlugin({
22 staticDir: path.join(__dirname, webpack_public_path || 'dist'), // 如果没配置环境目录(生产),则写到目录dist 23 staticDir: path.join(__dirname, webpack_public_path || 'dist'), // 如果没配置环境目录(生产),则写到目录dist
23 routes: ['/', '/demo', '/about'], 24 routes: ['/', '/demo', '/about'], // 需要seo的目录 临时占位,后期再进行配置
24 renderer: new Renderer({ 25 renderer: new Renderer({
25 inject: { 26 inject: {
26 foo: 'bar' 27 foo: 'bar'
......