3👍
you can use extractVueStyles in laravel-mix
extractVueStyles: Extract .vue component styling (CSS within
tags) to a dedicated file, rather than inlining it into the HTML.
- [Vuejs]-How to use vue element class from JQuery?
- [Vuejs]-How to make this.$refs.form method work by creating the component before?
0👍
I guess you might write CSS
in each Vue
single file component,like this:
//test.vue
<template>
<div></div>
</template>
<style>
div{
//...
}
</style>
Why not write these CSS
in a CSS
file and then require it in main.js
?then you need’t to think about removing these style
tags.
- [Vuejs]-Vuejs Component is not responding to "mouseleave" event
- [Vuejs]-Add props to component in setup() method / ionic & vue
Source:stackexchange.com