7be7ac75 by simon

默认提交

1 parent 84088acb
......@@ -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'
......