I'm new to Laravel and I've read a few other questions on Stackoverflow about adding custom styling to Laravel.
The reason I'm creating a new stackoverflow question is because Laravel seems to compile a single app.css
, that also loads bootstrap. I think this is created by running npm run dev
, which compiles the app.scss
in the resources
sass
folder.
In that given file bootstrap is loaded by @import '~bootstrap/scss/bootstrap';
I'd like to follow this principle too with my own custom styling, so that I get something along the lines of @import '~mywebsite.css';
This way I'd end up with a single .css file which I think is far more eloquent.
What's the appropriate way to go about this? Additionally, where is this 'bootstrap' styling located that is being imported? I fail to understand where '~' is located.
Last but not least, is it possible to use the same approach for the app.js
file?
With much regards,
- Chuck