diff --git a/src/index.js b/src/index.js index b40d0e10..1cb189cf 100644 --- a/src/index.js +++ b/src/index.js @@ -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);