Skip to content

Commit

Permalink
fix: add ';' to import media queries (#1051)
Browse files Browse the repository at this point in the history
Fi2zz authored Jan 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7ddf35a commit 98acf2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1364,7 +1364,7 @@ class MiniCssExtractPlugin {
// insert media into the @import
// this is rar
// TODO improve this and parse the CSS to support multiple medias
content = content.replace(/;|\s*$/, module.media);
content = content.replace(/;|\s*$/, `${module.media};`);
}

externalsSource.add(content);

0 comments on commit 98acf2b

Please sign in to comment.