I read that in order to have source maps, I have to use absolute URLs in the url('') statement. I did it as follows:
body background-image: url('/elements/assets/tmp_background.jpg')
It works when I remove the sourceMap parameter from the css loader, this does not happen if I activate it.
I think that maybe I failed somewhere on the absolute point of the path, do you have any ideas?
Here is my configuration file:
module.exports = { devtool: 'source-map', entry: [ 'webpack/hot/dev-server', 'webpack-dev-server/client?http://localhost:8080', path.resolve(__dirname, 'elements/main.js'), ], output: { path: 'dist', publicPath: '/',
In a more general idea, I could not find a working example of what I'm trying to do. I would be very interested if you can redirect me to this.
source share