Sourcemaps are detected in chrome but original source is not loaded, using webpack-2

前端 未结 3 1354
Happy的楠姐
Happy的楠姐 2020-12-11 00:05

When running an application that is built using webpack 2, sourcemaps are detected in chrome but original source is not loaded. I\'m using webpack beta21.

These file

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 00:36

    The issue with external source maps was fixed in Chrome 52 but it looks like you've got your devtool set differently from mine, I use:

    devtool: '#source-maps'
    

    How are you building your source? If you're running with -d it will switch to inline source maps

提交回复
热议问题