0

I am creating an app and using Tailwind CSS for most of the design. However, there are a couple of components from BootstrapVue that I would like to use.

Is it possible to import some of the components such as the Form Tags component as a plugin ? If so, how can I optimize this so I can get the smallest file possible in NuxtJS? Would it be OK to perhaps use all of the BootstrapVue form components but style it with Tailwind CSS?

If you can provide an optimal method for tree shaking, importing, etc that would be fantastic!

1 Answer 1

1

Yes, you can use shaking in bootstrap-vue in nuxt based on the documentation

I used this method in my project in the nuxt.config.js file:

bootstrapVue: {
    icons: false,
    componentPlugins: [
        'LayoutPlugin',
        'FormPlugin',
    ],
    components: ['BContainer', 'BRow', 'BCol' ],
    directives: ['VBModal', 'VBToggle', 'VBTooltip'],
},

Of course, you can put whatever you want in the config file.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.