@freewheel/file-watcher-webpack-plugin
v1.2.0
Published
A webpack plugin to simply force livereload on watched files
Downloads
1
Maintainers
Readme
Simple Watcher Webpack Plugin
A webpack plugin tries to force livereload on watched files.
Installation
Prerequisites: Node.js (>=4.x), npm version 2+.
npm install --save-dev simple-watcher-webpack-plugin
Basic Usage
var SimpleWatcherPlugin = require('simple-watcher-webpack-plugin');
// ...
plugins: [
new SimpleWatcherPlugin({
pattern: '**/__tests__/*.*'
})
]
// ...
Options
SimpleWatcherPlugin
takes following options:
new SimpleWatcherPlugin({
// pattern of path that needs to be watched
// the same as `[chokidar.watch](https://github.com/paulmillr/chokidar)`
pattern: '**/__tests__/*.*',
// Provide if you are using a liveReload, we will force clear the `lastHash`
liveReload: null
})
Contributing
Please read our contributing guide for details on how to contribute to our project.