Skip to content

Allow excluding build assets by specifying globs in a config file - #18

Open
dkadrios wants to merge 2 commits into
gregtillbrook:masterfrom
dkadrios:master
Open

Allow excluding build assets by specifying globs in a config file#18
dkadrios wants to merge 2 commits into
gregtillbrook:masterfrom
dkadrios:master

Conversation

@dkadrios

Copy link
Copy Markdown

Background: We have a project that imports a lot of JPGs and fonts. These bundles were cluttering up the report and making it next to useless for analyzing our bundled JavaScript.
By specifying which assets to exclude from the report, it makes it easier to concentrate on what's important to your team.

Example:
Contents of .bundlevisualizer.rc

{
  "exclude": [
    "**/*.gif",
    "**/*.jpg",
    "**/*.{eot,ttf,woff,woff2}"
  ]
}

The config file could be expanded in the future with additional switches and settings. For instance, it might be helpful to filter child bundles too.

…g file.

For example:
`.bundlevisualizer.rc`

```
{
  "exclude": [
    "**/*.gif",
    "**/*.jpg",
    "**/*.{eot,ttf,woff,woff2}"
  ]
}
```
@ebrensi

ebrensi commented Mar 31, 2020

Copy link
Copy Markdown

I would very much like to see this feature. Is there anything I can do to make it happen? I could just use this fork but I would like to stay current with other updates too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants