0.0.2 ā¢ Published 5 years ago
parcel-plugin-watch-reload-fc v0.0.2
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. āØ