0.0.2 ā€¢ Published 5 years ago

parcel-plugin-watch-reload-fc v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

parcel-plugin-watch-reload Build Status

šŸ“¦šŸ”ŒšŸ—‚šŸ‘€ 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. āœØ