Skip to content

Commit

Permalink
fix: add ';' to import media queries (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fi2zz authored Jan 9, 2024
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
Expand Up @@ -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);
Expand Down

0 comments on commit 98acf2b

Please sign in to comment.