提交 6f3cd34f 编写于 作者: fxy060608's avatar fxy060608

fix(app): generate css chunk

上级 daaed3e4
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
resolveMainPathOnce, resolveMainPathOnce,
normalizePath, normalizePath,
removeExt, removeExt,
isUniPageFile, isUniPageSfcFile,
} from '@dcloudio/uni-cli-shared' } from '@dcloudio/uni-cli-shared'
let appCss = '' let appCss = ''
...@@ -30,7 +30,7 @@ export const configResolved: Plugin['configResolved'] = (config) => { ...@@ -30,7 +30,7 @@ export const configResolved: Plugin['configResolved'] = (config) => {
chunkCssFilename(id: string) { chunkCssFilename(id: string) {
if (id === mainPath) { if (id === mainPath) {
return 'app.css' return 'app.css'
} else if (isUniPageFile(id, inputDir)) { } else if (isUniPageSfcFile(id, inputDir)) {
return normalizeCssChunkFilename(id) return normalizeCssChunkFilename(id)
} }
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册