Is there a way to make images load in browser when using style-loader/css-loader?sourceMap without specifying absolute url prefix as publicPath?
With this loader:
loaders.push({
test: /\.scss$/,
loader: 'style!css?sourceMap')
});
This works:
output = {
path: 'build',
publicPath: 'http://0.0.0.0:8080/'
filename: 'bundle.js'
};
This doesn't:
output = {
path: 'build',
publicPath: '/'
filename: 'bundle.js'
};
In the CSS modules generated as Blob the paths are relative to chrome:blob or chrome:devtools which doesn't refer to the correct assets.
If my assumption is correct and we always have to set absolute path in output.publicPath I will be happy to add a note about this to the docs.
Is there a way to make images load in browser when using
style-loader/css-loader?sourceMapwithout specifying absolute url prefix aspublicPath?With this loader:
This works:
This doesn't:
In the CSS modules generated as
Blobthe paths are relative tochrome:bloborchrome:devtoolswhich doesn't refer to the correct assets.If my assumption is correct and we always have to set absolute path in
output.publicPathI will be happy to add a note about this to the docs.