Currently, I am working on a 1-file component in Vue as part of my Laravel project for testing purposes. My CSS is written using Less and stored in a separate file. Despite my efforts, I have been unable to successfully include this file in my project. I have searched on Stack Overflow for answers, but I am unsure if I am looking in the right place or if I am making a mistake.
This is what I have attempted:
<style src="css/sidebar.css"></style>
The same method was used for the image:
<img class="flex-item" src="img/Home-icon.png">
However, when running "npm run dev," I encounter this error.
I then tried this approach:
<style src="../public/css/sidebar.css"></style>
Unfortunately, this resulted in the same error message with a different path mentioned.
At this point, I am feeling a bit stuck. Is there anyone who can provide assistance with this issue?