{"library":"rollup-plugin-watch-globs","title":"rollup-plugin-watch-globs","description":"A Rollup plugin that extends the watch mode to monitor arbitrary file globs (e.g., static assets, stylesheets, HTML) not in the module graph. Currently v2.0.1, maintained by Caleb Evans. Key differentiator: unlike relying on Rollup's default watch (which only tracks JS/TS files in the dependency graph), this plugin explicitly adds glob patterns to trigger rebuilds, complementing tools like rollup-plugin-copy. Released under MIT License, requires rollup >=2.0.0 as a peer dependency. A lightweight, focused solution with no runtime dependencies beyond rollup.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-watch-globs"],"cli":null},"imports":["import watchGlobs from 'rollup-plugin-watch-globs'","const watchGlobs = require('rollup-plugin-watch-globs').default","plugins: [watchGlobs([ 'public/**/*.*', 'src/styles/*.scss' ])]"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport watchGlobs from 'rollup-plugin-watch-globs';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'esm'\n  },\n  plugins: [\n    watchGlobs([\n      'public/**/*.*',\n      'src/styles/*.scss'\n    ])\n  ]\n};\n","lang":"javascript","description":"Shows how to import and configure watchGlobs with two glob patterns to watch static assets and stylesheets.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}