Skip to content

Commit 49f442d

Browse files
committed
fix: fix wrong tag for css file
1 parent 20bb5a0 commit 49f442d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ class InlineSourceWebpackPlugin {
2626
for (let name in compilation.assets) {
2727
if (regExp.test(name)) {
2828
source.content = compilation.assets[name].source();
29+
if (source.type === 'css') {
30+
// change tag type
31+
source.tag = 'style';
32+
}
2933
if (source.props['bundle-delete']) {
3034
// mark the bundle that need to delete
3135
this.deleteAssets.push({

0 commit comments

Comments
 (0)