I have my webpack.config like so:
module: {
rules: [
{
test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: { loader: 'css-loader', options: { url: false, root: 'http://localhost:9000/' } }
}),
exclude: /node_modules/
}
]
},
Reading the css-loader options documentation it says:
If a root query parameter is set, however, it will be prepended to the URL and then translated.
If my css looks like so:
select-page {
background-image: url('assets/background.png') !important;
}
I expect the output url to be 'http://localhost/9000/assets/background.png'.
However, that isn't what I'm getting, there is no change when I run the build.