Webpack不会发出源图

时间:2016-11-10 13:55:52

标签: webpack webpack-dev-server

我希望除了这是我正在调用的命令之外,我还能提供更多细节:

node $NODE_DEBUG_OPTION ./node_modules/.bin/webpack-dev-server --inline --hot -d

这是my webpack config

1 个答案:

答案 0 :(得分:0)

实际上它遍布整个文档。您只需在每个加载器之后提供?sourceMap参数:

css?sourceMap!postcss?sourceMap!sass?sourceMap

postcss装载机:

https://github.com/postcss/postcss/blob/master/docs/source-maps.md https://github.com/postcss/postcss-loader

SASS装载机:

https://github.com/jtangelder/sass-loader

CSS-装载机:

https://github.com/webpack/css-loader