Join GitHub today
css-loader doesn't export Webpack's stats when @import is used #755
Do you want to request a feature or report a bug?
What is the current behavior?
The Webpack's stats doesn't seem to contain any data related to
What is the expected behavior?
When reading a file from
I'm still new to Webpack, so I might not understand some stuffs correctly. But I'm quite certain that the css file path isn't in Webpack's stats.
If this is a feature request, what is motivation or use case for changing the behavior?
We would like css-loader to output the file it reads to Webpack's stats. We use this data to track changes in files and their dependencies, so that we can hot-reload code correctly.
This explains why Webpack's stats contains the content of the css import, for example:
However, the css file path is nowhere to be found.
Could you point to the code where it converts css import to a js module? It might be helpful to me. I want to try to solve this problem by leaving a trail that contains the css file path.
Also, I'll file an issue in Webpack's project. Thank you @evilebottnawi