Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@import css isn't tracked properly #20

Open
tanin47 opened this issue Aug 10, 2018 · 2 comments
Open

@import css isn't tracked properly #20

tanin47 opened this issue Aug 10, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tanin47
Copy link
Contributor

tanin47 commented Aug 10, 2018

This is because the reasons field of Webpack's stats doesn't include CSS.

I think we need to fix either https://github.com/vuejs/vue-loader, https://github.com/webpack-contrib/css-loader, or https://github.com/vuejs/vue-style-loader

@tanin47 tanin47 added the bug Something isn't working label Aug 10, 2018
@tanin47 tanin47 self-assigned this Aug 10, 2018
@tanin47
Copy link
Contributor Author

tanin47 commented Aug 10, 2018

I've filed a bug here: webpack-contrib/css-loader#755

Because css-loader says that: The css-loader interprets @import and url() like import/require() and will resolve them.

@tanin47
Copy link
Contributor Author

tanin47 commented Aug 10, 2018

From webpack-contrib/css-loader#755, it seems the @import is converted to a JS module, and we don't leave a trail around which css file path is used for constructing the JS module.

Leaving a trail can be one way to solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant