Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 6fbf9fb

Browse files
committed
Fix .min.css.
1 parent cc84bdb commit 6fbf9fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ return module.exports;`;
460460
ourl = ourl.slice(0, -3) + '.min.js';
461461
}
462462
else if (ourl.endsWith('.css') && !ourl.endsWith('.min.css')) {
463-
ourl = ourl.slice(0, -3) + '.min.css';
463+
ourl = ourl.slice(0, -4) + '.min.css';
464464
}
465465
}
466466
this.fetch(opt.before + ourl + (((_c = opt.afterIgnore) === null || _c === void 0 ? void 0 : _c.test(url)) ? '' : opt.after), opt.init).then((res) => {

dist/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ return module.exports;`;
573573
ourl = ourl.slice(0, -3) + '.min.js';
574574
}
575575
else if (ourl.endsWith('.css') && !ourl.endsWith('.min.css')) {
576-
ourl = ourl.slice(0, -3) + '.min.css';
576+
ourl = ourl.slice(0, -4) + '.min.css';
577577
}
578578
}
579579
this.fetch(opt.before + ourl + (opt.afterIgnore?.test(url) ? '' : opt.after), opt.init).then((res) => {

0 commit comments

Comments
 (0)