Skip to content

Commit

Permalink
fix: 修复 common.wxss 循环引用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanzebin authored and Chen-jj committed Sep 28, 2021
1 parent 90ef558 commit 0cf5651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default ctx => {
Object.keys(assets).forEach(filename => {
const isWxss = wxssReg.test(filename)

if (isWxss && filename !== 'app.wxss') {
if (isWxss && filename !== 'app.wxss' && filename !== 'common.wxss') {
const source = new ConcatSource()
const originSource = assets[filename].source()
const relativePath = JSON.stringify(promoteRelativePath(path.relative(filename, 'app.wxss')))
Expand Down

0 comments on commit 0cf5651

Please sign in to comment.