1.0.1 • Published 6 years ago

html-webpack-watch-plugin v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

html-webpack-watch-plugin

Based on html-webpack-plugin.

Watch your extra files with chokidar. If your files are changed, html-webpack-plugin events are called such as htmlWebpackPluginBeforeHtmlProcessing.

Installation

npm install --save html-webpack-watch-plugin

Added options

NameTypeDefaultDescription
watchbooleantrueAre you watching files?
watchOptionsObject[]chokidar

usage

const HtmlWebpackWatchPlugin = require('html-webpack-watch-plugin')

module.exports = {
  //...
  plugins: [
    new HtmlWebpackWatchPlugin({
      //...html-webpack-plugin Options...
      watch: true,
      watchOptions: {
        files: [ "../assets/**/*.css" ],
        onReady: function() {
          console.log("I am ready")
        }
      }
    })
  ]
}

Powered by

LICENSE

MIT