feat: 详情页seo预渲染,添加Open Graph Protocol头信息
This commit is contained in:
+7
-7
@@ -26,13 +26,13 @@ export default defineConfig(({command, mode}) => {
|
||||
localEnabled: env.VITE_IS_MOCK == 'true' ? command === 'serve' : false,
|
||||
}),
|
||||
//修改html插件
|
||||
createHtmlPlugin({
|
||||
inject: {
|
||||
data: {
|
||||
title: env.VITE_APP_TITLE
|
||||
}
|
||||
}
|
||||
}),
|
||||
// createHtmlPlugin({
|
||||
// inject: {
|
||||
// data: {
|
||||
// title: env.VITE_APP_TITLE
|
||||
// }
|
||||
// }
|
||||
// }),
|
||||
seoperender()
|
||||
],
|
||||
resolve: {
|
||||
|
||||
Reference in New Issue
Block a user