parcel-plugin-watch-reload-fc
v0.0.2
Published
π¦πππ A [Parcel](https://github.com/parcel-bundler/parcel) plugin that watches files not included in your bundles (e.g. `**/*.php`) and reloads your browser if they change. Also, has emojis in readme πΎ
Downloads
6
Readme
parcel-plugin-watch-reload
π¦πππ A Parcel plugin that watches files not included in your bundles (e.g. **/*.php
) and reloads your browser if they change. Also, has emojis in readme πΎ
Installation
$ npm install parcel-plugin-watch-reload -D
...or
$ yarn add parcel-plugin-watch-reload -D
Setup
Specify which file types should trigger a browser reload in your package.json
:
{
"watchreload": {
"files": "**/*.php"
}
}
Arrays of globs are also supported:
{
"watchreload": {
"files": ["**/*.php", "**/*.svg"]
}
}
That's it! If you start parcel in watch mode, each change to a file matching your rules will trigger a browser reload. β¨