Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 8a9f3b8

Browse files
committed
Merge pull request #84 from mateatslc/master
Change 'sourcemap' to 'source-map'
2 parents a03c82c + d48eefd commit 8a9f3b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ It moves every `require("style.css")` in entry chunks into a separate css output
2121
Advantages:
2222

2323
* Fewer style tags (older IE has a limit)
24-
* CSS SourceMap (with `devtool: "sourcemap"` and `css-loader?sourceMap`)
24+
* CSS SourceMap (with `devtool: "source-map"` and `css-loader?sourceMap`)
2525
* CSS requested in parallel
2626
* CSS cached separate
2727
* Faster runtime (less code and DOM operations)

example/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ module.exports = {
2323
{ test: /\.png$/, loader: "file-loader" }
2424
]
2525
},
26-
devtool: "sourcemap",
26+
devtool: "source-map",
2727
plugins: [
2828
new ExtractTextPlugin("css/[name].css?[hash]-[chunkhash]-[contenthash]-[name]", {
2929
disable: false,
3030
allChunks: true
3131
}),
3232
new webpack.optimize.CommonsChunkPlugin("c", "c.js")
3333
]
34-
};
34+
};

0 commit comments

Comments
 (0)