Skip to content

Commit 5706338

Browse files
erha19Hanks10100
authored andcommitted
Should emit the error of css parse.
1 parent b71f14f commit 5706338

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/style-loader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function genStyleString (input, loader) {
2929
var output = '{}'
3030
styler.parse(input, function (err, obj) {
3131
if (err) {
32+
loader.emitError(err)
3233
return
3334
}
3435
if (obj && obj.jsonStyle) {

0 commit comments

Comments
 (0)