My product web package configuration:
{ output: { publicPath: "https://cdn.example.com/sub-directory/", filename: '[name]-[chunkhash].min.js' }, devtool: 'source-map', plugins: [ new webpack.optimize.UglifyJsPlugin() ] }
Now I have two files app-12345.min.js and app-12345.min.js.map .
I also automatically generated the CDN URL https://cdn.example.com/sub-directory/app-12345.min.js for the main script.
But sourceMappingURL is still relative path //# sourceMappingURL=app-12345.min.js.map and is not available directly in the browser.
My question is, how can I set sourceMappingURL as an absolute automatically generated path?
Ky6uk source share