ambar / vscode-bundle-size

Display the bundle size of npm packages: https://marketplace.visualstudio.com/items?itemName=ambar.bundle-size
33 stars 1 forks source link

Add Color Option to `cautionSize` and `dangerSize` #2

Closed ianrohde closed 2 years ago

ianrohde commented 2 years ago

It'd be nice to be able customize the text color to match our favorite themes:

{
  "bundleSize.cautionSize": {
    "type": "number",
    "default": 50,
    "description": "Size limit in KB, display caution color if exceeded",
    "color": "#aaaaaa"
  },
  "bundleSize.dangerSize": {
    "type": "number",
    "default": 100,
    "description": "Size limit in KB, display danger color if exceeded",
    "color": "#bbbbbb"
  }
}
ambar commented 2 years ago

@ianrohde Released in v1.4.0 (d3c59714904a5ae332ec620d9862defe73f7a948)

ianrohde commented 2 years ago

@ambar thanks for adding this! FYI, I just updated the extension, reloaded VSCode, and I'm not seeing the import size text anywhere.

ambar commented 2 years ago

@ianrohde It takes some time for first use (installing esbuild).