Webpack-dev-server doesn't generate source maps

前端 未结 5 1988
余生分开走
余生分开走 2020-12-13 17:12

I use babel-loader, but can\'t figure out how to generate or where find source maps for transpiled files. I tried eval-source-map, inline-source-map

5条回答
  •  星月不相逢
    2020-12-13 18:06

    Please add in you webpack.config.js file the following`

    devtool: "#inline-source-map",

    You can find clear information about it from the site of webpack` https://webpack.github.io/docs/configuration.html

    Also please find attached screenshot of sourcemap part, from webpack site.

    enter image description here

提交回复
热议问题