1.0.1 • Published 6 years ago
html-webpack-watch-plugin v1.0.1
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
Name | Type | Default | Description |
---|---|---|---|
watch | boolean | true | Are you watching files? |
watchOptions | Object | [] | 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