Skip to content

Commit 4c4ac7b

Browse files
committed
Allow CSS source maps by default
1 parent bffe603 commit 4c4ac7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/SourceMapDevToolPlugin.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SourceMapDevToolPlugin.prototype.apply = function(compiler) {
3333
var fallbackModuleFilenameTemplate = this.fallbackModuleFilenameTemplate;
3434
var requestShortener = new RequestShortener(compiler.context);
3535
var options = this.options;
36-
options.test = options.test || /\.js($|\?)/i;
36+
options.test = options.test || /\.(js|css)($|\?)/i;
3737
compiler.plugin("compilation", function(compilation) {
3838
new SourceMapDevToolModuleOptionsPlugin(options).apply(compilation);
3939
compilation.plugin("after-optimize-chunk-assets", function(chunks) {

0 commit comments

Comments
 (0)