How to include css files in Vue code example
Example: vue import css
// To import global CSS, simply import the stylesheet in main.js or App.vue,
// where it is easy to reference all global styles in one main file
// (or create a styles-import.js file and import that file in your main.js file).
// To import css scoped to a component, we can't just @import within a scoped style element,
// as they will leak out.
// Instead, we need to dedicate an entire scoped style element to importing that file.
// Do this:
<style scoped src="~/assets/styles.css"><style> // This will import the CSS scoped to this component only
// Not that:
<style scoped lang="css">
@import "~/assets/styles.css"; // This will import the CSS globally