1. parcel-plugin-bootstrap-vue-icons

parcel-plugin-bootstrap-vue-icons

bootstrap-vue icons parcel plugin

A parcel plugin to remove unused bootstrap-vue icons from final bundle and reduce bundle size.

language npm package NPM downloads

This plugin is only running when parcel is called with "-experimental-scope-hoisting"

This plugin overwrites JSConcatPackager, it can be in conflit with other plugin which also overwrite JSConcatPackager.

Installation

 yarn add -D parcel-plugin-bootstrap-vue-icons

# or with npm

npm install -D parcel-plugin-bootstrap-vue-icons

Usage

The plugin scanns all vue files an will detect any use of b-icon to see which icons to keep

If you need to keep additional icons that are not used in templates (e.g. set at runtime), you can provide a list in your package.json file:

 // package.json
"name": "my-package-name",
...
"bootstrapVueIcons": {
  "icons": ["arrow-up", "exclamation-circle-fill", ...]
}

Dependencies