Skip to content

Commit 0108d76

Browse files
author
Christian Kaisermann
committed
fix: 🐛 prevent css injection if emitCss is set to true
1 parent 9f9df9d commit 0108d76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ module.exports = function(source, map) {
131131
if (!pluginOptions[option]) compileOptions[option] = options[option];
132132
}
133133

134+
if (options.emitCss) compileOptions.css = false;
135+
134136
deprecatePreprocessOptions(options);
135137
options.preprocess.filename = compileOptions.filename;
136138

0 commit comments

Comments
 (0)