Closed jankrloz closed 5 years ago
You are misunderstanding what this configuration is for. It's meant to include files that only provide variables, mixins etc, so you can use them any component without manually using @import
in each of them.
You should not use that configuration for files that contain actual CSS, because these files, because it would be imported in every component of your project, resulting in lots and lots of duplicated CSS.
With this understanding, you should see that this is not a bug bug expected behaviour: No style tag = bo injection, but that's fine as the component has no use for SCSS variables if there is no SCSS code to consume them.
So where to put the gobal CSS? in main.js
import './assets/scss.global.scss'
Version
3.5.5
Reproduction link
https://gitlab.com/jankrloz/cv
Environment info
Steps to reproduce
Remove style body of src/App.vue and the src/assets/scss/global.scss added via vue.config.js is not more injected.
What is expected?
src/assets/scss/global.scss injected successfully
What is actually happening?
src/assets/scss/global.scss not injected