Awesome post Lynne. This helped me clean up way too many double imports.
Emmanuel, I was a little confused too.
For the stylesheet that you call into vue.config.js only import mixins and variables (no style selectors/rules).
vue.config.js
mixins
variables
Call other global.scss (declared rules and stuff) elsewhere, like main.js or a parent app like App.vue.
global.scss
main.js
App.vue
Any style rules imported to a stylesheet through vue.config.js will import again for each component that uses it.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Awesome post Lynne. This helped me clean up way too many double imports.
Emmanuel, I was a little confused too.
For the stylesheet that you call into
vue.config.js
only importmixins
andvariables
(no style selectors/rules).Call other
global.scss
(declared rules and stuff) elsewhere, likemain.js
or a parent app likeApp.vue
.Any style rules imported to a stylesheet through
vue.config.js
will import again for each component that uses it.