Skip to content

Commit 19e9ba4

Browse files
authored
Merge pull request #80 from kaisermann/fix/stop-css-injection-with-emitcss
fix: 🐛 prevent css injection if emitCss is set to true
2 parents 9f9df9d + 0108d76 commit 19e9ba4

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)