Skip to content

Commit 98acf2b

Browse files
authored
fix: add ';' to import media queries (#1051)
1 parent 7ddf35a commit 98acf2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ class MiniCssExtractPlugin {
13641364
// insert media into the @import
13651365
// this is rar
13661366
// TODO improve this and parse the CSS to support multiple medias
1367-
content = content.replace(/;|\s*$/, module.media);
1367+
content = content.replace(/;|\s*$/, `${module.media};`);
13681368
}
13691369

13701370
externalsSource.add(content);

0 commit comments

Comments
 (0)