Skip to content

css-loader doesn't export Webpack's stats when @import is used #755

@tanin47

Description

@tanin47

Do you want to request a feature or report a bug?

Feature

What is the current behavior?

The Webpack's stats doesn't seem to contain any data related to @import

What is the expected behavior?

When reading a file from @import, ensure that the imported file path and the path of the file contains @import are written to Webpack's stats (https://webpack.js.org/api/stats/).

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions