GIVESocialMovement / sbt-vuefy

Use Vue.js with Playframework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@import css isn't tracked properly

tanin47 opened this issue · comments

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

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.

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.