I have a Vue.js project using Vue UI with Webpack project using router for multiple "pages". I am using SASS (SCSS) partials and importing them in the individual components.
<style lang="sass">
@import "@/css/modules/_style-guide.scss";
</style>
On each "page" the SASS (actually the rendered CSS) is being loaded into the DOM in the head for all components even if they are not being imported into the "page".
Adding the "scoped" option still loads all SASS files, just adds the unique guid.
I would rather import the SASS only if a component is present on a "page".
Is there a way to do this?