Answer the question
In order to leave comments, you need to log in
How to make friends css-loader with modules: true and import url in style files?
The error reproduces the same with less-loader and postcss-loader. If I include modules: true in the css-loader options, then the collector does not see the content of relative url(...) in style files. background: url('kitty.jpg') and url('./kitty.jpg') throw an error:
Module not found: Error: Can't resolve 'kitty.jpg' in '/Users/anubis/Projects/Kooler/src/client/engine/components'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question