fix: update

This commit is contained in:
xiaoxian521
2021-11-10 11:50:29 +08:00
parent b45a10b98f
commit af01d80db2
4 changed files with 9 additions and 12 deletions

View File

@@ -110,10 +110,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
// 在生产模式是否抽取独立的主题css文件extract为true以下属性有效
extract: true,
// 独立主题css文件的输出路径默认取 viteConfig.build.assetsDir 相对于 (viteConfig.build.outDir)
outputDir:
process.env.NODE_ENV === "production"
? "/manages/assets/"
: VITE_PUBLIC_PATH,
outputDir: "",
// 会选取defaultScopeName对应的主题css文件在html添加link
themeLinkTagId: "head",
// "head"||"head-prepend" || "body" ||"body-prepend"