双斜杆问题

This commit is contained in:
Wang Kejun 2022-05-17 12:06:14 +08:00
parent 7249e30f3d
commit 8116d66f20
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ class OakWeChatMpPlugin {
async emitAssetsFile(compilation) {
const emitAssets = [];
for (let entry of this.assetsEntry) {
const assets = path.resolve(this.basePath, entry);
const assets = path.resolve(this.basePath, entry).replace(/\\/g, '/');
if (/\.(sass|scss|css|less|styl|xml|wxml)$/.test(assets)) {
continue;
}