I'm using webpack to build my vue.js app, and everything is fine until images are found into imported a node_module css file. They cannot be resolved.
<style lang="less">
@import '~@vue/vue';
</style>
where in vue.less
@import (inline) "@{node_modules}/third_party_lib/unmodifiable.css";
Can't resolve './my_image.png'
Adding url=false to vue-loader is an option
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
extractCSS: prod,
loaders: {
less: 'vue-style-loader!css-loader?url=false!less-loader',
},
},
},
but it breaks the ExtractTextPlugin...
How can I tell vue-loader to look in the right folder? Or, how can I tell webpack to, please, don't try to resolve images path as modules at all ?
aliasoption of css-loader can help you? github.com/webpack-contrib/css-loader#alias