css-loader 5.x.x support?
nolimitdev opened this issue · comments
vue-style-loader does not work also with css-loader 5.x.x such as with css-loader 4.x.x
vue-style-loader does not work also with css-loader 5.x.x such as with css-loader 4.x.x
just set value of attribute "esModule" to false in css-loader's options.
Useful! 👍
{
test: /\.styl(us)?$/,
use: [
'vue-style-loader',
{
loader: 'css-loader',
options: {
esModule: false,
},
},
'stylus-loader',
],
},
I think that the best is to not use obsolete vue-style-loader
at all and use rather original style-loader
.
Pro-test effective
webpack.config.js:
{
test: /\.css$/,
use: [
'vue-style-loader',
{
loader: 'css-loader',
options: {
esModule: false
}
}
]
},
package.json:
"css-loader": "3.6.0",
"vue-loader": "15.9.6",
Fixed in 4.1.3