
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
rollup-plugin-watch
Advanced tools
A rollup plugin to specify directories and files to watch
import watch from "rollup-plugin-watch";
export default {
input: "index.js",
output: { file: "dist/index.js", format: "esm" },
plugins: [ watch({ dir: "public" }) ]
};
This will watch all files and directories inside the public folder for changes.
Optionally you can filter what gets watched using the include
and exclude
options.
Type: array
or string
Default: []
A single file, or array of files to include when watching.
Type: array
or string
Default: []
A single file, or array of files to exclude when watching.
Type: string
Default: null
A directory to watch.
When you have a folder of static assets that are not directly imported in your code, rollup does not know when those files change. This plugin notifies rollup of changes to these files by telling rollup to watch them. By using this plugin you dont need to break your development flow to restart the dev server..
If you are having trouble getting something to work with this plugin or run into any problems, you can create a new Issue.
If this plugin does not fit your needs or is missing a feature you would like to see, let us know! We would greatly appreciate your feedback on it.
rollup-plugin-watch is licensed under the terms of the MIT license.
FAQs
A rollup plugin to specify directories and files to watch
The npm package rollup-plugin-watch receives a total of 0 weekly downloads. As such, rollup-plugin-watch popularity was classified as not popular.
We found that rollup-plugin-watch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.