Skip to content

Commit e0e3dea

Browse files
committed
Interpolate outputReport file placeholders
Fixes webpack-contrib#121
1 parent 570730c commit e0e3dea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ function lint(input, config, webpack) {
9393
else {
9494
reportOutput = messages
9595
}
96-
webpack.emitFile(config.outputReport.filePath, reportOutput)
96+
var filePath = loaderUtils.interpolateName(webpack, config.outputReport.filePath, {
97+
content: res.results.map(function(r){ return r.source }).join("\n")
98+
});
99+
webpack.emitFile(filePath, reportOutput)
97100
}
98101

99102
// default behavior: emit error only if we have errors

0 commit comments

Comments
 (0)