Skip to content

Commit 0e7624e

Browse files
qiuzizzhiqingchen
andauthored
fix: newBlended模式下公共样式文件后缀名 (#15934)
Co-authored-by: tony chen <[email protected]>
1 parent 5a17fe8 commit 0e7624e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/taro-webpack5-runner/src/plugins/MiniPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ export default class TaroMiniPlugin {
15051505
if (pageStyle in assets) {
15061506
const source = new ConcatSource('')
15071507
const originSource = assets[pageStyle]
1508-
source.add(`@import ${JSON.stringify(urlToRequest(path.posix.relative(path.dirname(pageStyle), 'app.wxss')))};\n`)
1508+
source.add(`@import ${JSON.stringify(urlToRequest(path.posix.relative(path.dirname(pageStyle), 'app' + styleExt)))};\n`)
15091509
source.add(originSource)
15101510
assets[pageStyle] = source
15111511
}

0 commit comments

Comments
 (0)