Using a Configuration File 
The Bundlewatch CLI can read configuration from a .json, .js, or your package.json file.
- To use a custom config file, specify it on the command line:bashbundlewatch --config .bundlewatch.config.js
- If you omit the --configflag, Bundlewatch will look for abundlewatchkey in yourpackage.json.
Example package.json configuration:
json
{
  "name": "my package name",
  "version": "0.0.1",
  "bundlewatch": {
    "files": [
      {
        "path": "myfolder/*.js",
        "maxSize": "100kB"
      }
    ]
  }
}You can also supply the config directly to the Node.js API.