parcel-plugin-bootstrap-vue-icons

1.1.1 • Public • Published

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", ...]
}

Package Sidebar

Install

npm i parcel-plugin-bootstrap-vue-icons

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

4.93 kB

Total Files

4

Last publish

Collaborators

  • ov3rk1ll