[Vuejs]-Injecting css link in Vue CLI build output

0👍

Figured out soon after posting question. I’ll post it here for my own record and for anyone else landing here.

The solution was simpler than I anticipated. Vue CLI uses contents of /public folder to generate build output. So the solution was to simply go to public/index.html and place the meta tag in there.

Note: In my case I created a Laravel project and then used Vue CLI to create a Vue project inside Laravel project folder, so my folder structure looked like this:

Laravel_Project
--app
--bootstrap
--...
--public
--Vue_CLI_Project
----src
----public

Note that there are two public folders: First one is in Laravel project’s root directory, whereas the second one is inside Vue project’s directory. We are talking about the second one here.

Leave a comment