File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,12 @@ HtmlWebpackInlineSourcePlugin.prototype.resolveSourceMaps = function (compilatio
71
71
var publicPath = out . publicPath || '' ;
72
72
// Prepend Webpack public URL path to source map relative path
73
73
// Calling `slash` converts Windows backslashes to forward slashes
74
- var mapUrlCorrected = slash ( path . join ( publicPath , mapPathRelative ) ) ;
74
+ var mapUrlCorrected ;
75
+ if ( publicPath . indexOf ( 'http' ) === 0 ) {
76
+ mapUrlCorrected = publicPath + '/' + mapPathRelative
77
+ } else {
78
+ mapUrlCorrected = slash ( path . join ( publicPath , mapPathRelative ) ) ;
79
+ }
75
80
// Regex: exact original sourcemap URL, possibly '*/' (for CSS), then EOF, ignoring whitespace
76
81
var regex = new RegExp ( escapeRegex ( mapUrlOriginal ) + '(\\s*(?:\\*/)?\\s*$)' ) ;
77
82
// Replace sourcemap URL and (if necessary) preserve closing '*/' and whitespace
You can’t perform that action at this time.
0 commit comments