Skip to content

Commit 91de28e

Browse files
committed
emit warnings to webpack - fixes #35
1 parent b974239 commit 91de28e

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
@@ -70,6 +70,8 @@ module.exports = function(source, map) {
7070

7171
if (!options.name) options.name = capitalize(sanitize(options.filename));
7272

73+
if (!options.onwarn) options.onwarn = warning => this.emitWarning(new Error(warning));
74+
7375
preprocess(source, options).then(processed => {
7476
let { code, map, css, cssMap, ast } = compile(processed.toString(), options);
7577

0 commit comments

Comments
 (0)