I have a large site with a lot of page, for 4-6 pages I need a specific css code. I don't want to add this css code to global file, instead I want is to whenever anyone of the page is browesed load that related specific file only once. I tried something like this
.....
//page 45
<style>
@import '../../styles/boxes.css'
</style>
......
.....
//page 46
<style>
@import '../../styles/boxes.css'
</style>
......
.....
//page 47
<style>
@import '../../styles/boxes.css'
</style>
......
....
Issue with this approach is that now I have multiple occurrences of same css code. Is there any way in the .vue file to import boxes.css file only if its already not imported?