@freewheel/file-watcher-webpack-plugin

1.2.0 • Public • Published

Simple Watcher Webpack Plugin

NPM version Apache V2 License

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.

License

Apache-2.0

Package Sidebar

Install

npm i @freewheel/file-watcher-webpack-plugin

Weekly Downloads

0

Version

1.2.0

License

Apache-2.0

Unpacked Size

20.8 kB

Total Files

11

Last publish

Collaborators

  • robinyy