Answer the question
In order to leave comments, you need to log in
How to include all style files from a folder in webpack?
Maybe someone knows a ready-made solution for connecting all files in a folder without specifying each file separately?
For example, the entire application is divided into components. Each component is in a separate folder. The folder also describes the styles for this component (that is, the folder can contain not only styles). I would like to connect all the styles from the folder with one command. Something like this:require('./*.css')
Answer the question
In order to leave comments, you need to log in
https://github.com/webpack/docs/wiki/contextrequire.context('./', false, /\.css$/ )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question