
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
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 602 weekly downloads. As such, rollup-plugin-watch popularity was classified as not popular.
We found that rollup-plugin-watch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.