I am using Vue Design System in order reuse components and styles in multiple Vue applications.
I'm trying to include a global CSS file in the DS export, but I can not get this to show in the app. Any tips ?
So far i have tried this which does not seem to load the required file.
// Install the above defined components
const System = {
install(Vue) {
require("./styles/global.scss")
components.forEach(component => Vue.component(component.name, component))
},
}
export default System
which will be used as :
import DesignSystem from "@/system"
Vue.use(DesignSystem)
I can not find any guidelines in the Vue docs about loading CSS with a plugin.