@netsells/nuxt-bootstrap-vue-lazyloader

0.3.0 • Public • Published

Nuxt Bootstrap-vue Lazy Loader

This module exposes an additional lazyComponents property in the bootstrap-vue config. Any components referenced here will be converted to lazy-loaded imports instead of being bundled into the main runtime chunk. This will greatly improve performance.

Installation

Add the module to your nuxt application:

$ yarn add @netsells/nuxt-bootstrap-vue-lazyloader

Add the module to your nuxt config:

module.exports = {
    modules: [
        '@netsells/nuxt-bootstrap-vue-lazyloader',
    ],
};

Usage

Add the lazyComponents property to your bootstrap-vue config. Usage may vary depending on how your are defining the config, but take the following for example:

module.exports = {
    bootstrapVue: {
        components: [
            'BRow',
            'BCol',
        ],
        lazyComponents: [
            'BCollapse',
        ],
    },
};

Readme

Keywords

none

Package Sidebar

Install

npm i @netsells/nuxt-bootstrap-vue-lazyloader

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

3.7 kB

Total Files

4

Last publish

Collaborators

  • rebeccaanderton
  • samturrell
  • spamoom
  • jakub.gawron