Greetings, lovely individuals,
I am currently facing an issue with compiling CSS for Vue components. You can view my configuration file here: https://gist.github.com/lavezzi1/27817a17cb4fa2a092e701089ecae0ec
When working on a multiple page app using Vue, everything functions correctly except for one particular scenario. If I have two pages and both import the modal component with
import Modal from 'components/modal.vue'
, then all is well. However, if one page does not import the modal, the output .css file does not include the CSS code for the modal. How can this be resolved?
My Vue components are structured as follows:
<template>
...
</template>
<script>
...
</script>
<style lang="css">
// CSS rules go here
</style>
Any assistance or guidance on this matter would be greatly appreciated!