[Vuejs]-Vuejs hiding style tag from head | Laravel-vuejs application

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.

Laravel Mix Options

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.

Leave a comment