buefy / nuxt-buefy

Nuxt Buefy
MIT License
221 stars 33 forks source link

A way to specify which JS components to include #98

Closed stieben closed 3 years ago

stieben commented 3 years ago

I have a minimal Nuxt site; my main.scss only loads the following Buefy files:

@import '~buefy/src/scss/utils/_all';
@import '~buefy/src/scss/components/_message';

Which is to say: Choosing what SCSS to include works. ✔️

Regarding the JS part of the components – Buefy supports including specific components:

import { Input, Table } from 'buefy'

Vue.use(Input)
Vue.use(Table)

Is there a way to do the same with nuxt-buefy? As I understand, nuxt-buefy automatically imports all components, so my vendors chunk looks like this:

Webpack Bundle Analyzer

jtommy commented 3 years ago

No you have to create a your own plugin