numical / script-ext-html-webpack-plugin

Enhances html-webpack-plugin functionality with different deployment options for your scripts including 'async', 'preload', 'prefetch', 'defer', 'module', custom attributes, and inlining.
MIT License
588 stars 105 forks source link

DevTools failed to parse SourceMap When using inline #70

Closed ctwowt closed 4 years ago

ctwowt commented 4 years ago

image

image

ctwowt commented 4 years ago

I resolved using SourceMapDevToolPlugin exclude inline script file that webpack not actually generate that source map file ...

And that sourcemap file url was wrong so for those webpack runtime inline script file not need sourcemap file

PS: poor English...

   /* config.plugin('source-map') */
    new SourceMapDevToolPlugin(
      {
        exclude: [
          /startup.*\.js$/
        ],
        filename: '[file].map'
      }
    ),