vue-blu
vue-blu copied to clipboard
Import components on demand
Any way to import components on demand? Something like
import { Alert, Tooltip } from 'vue-blu'
Vue.component('alert', Alert)
That doesn't work.
Try the following code.
import Alert from 'vue-blu/src/components/alert';
import 'vue-blu/dist/css/vue-blu.min.css'
Vue.component('alert', Alert);
Why do I have to import vue-blu/src/scss/blu
AND vue-blu/dist/css/vue-blu.min.css
? (if I don't, a lot of components are broken).
Shouldn't the blu.scss
be enough since it already imports all elements (@import './elements/_all';
)?