compiler-then-plugin
v0.0.3
Published
After each compilation, execute the custom script
Readme
Compiler Then Plugin
Install
Install the plugin
npm install compiler-then-plugin -DConfigure Webpack
const CompilerThenPlugin = require('compiler-then-plugin')
module.exports = {
plugins: [
new CompilerThenPlugin({
port: 3333,
script: 'console.log("something...")',
}),
],
}Configuration
parameter
port
Type: number
Default: 3872
Port number of the internal websocket service.
script
Type: string
Default: location.reload
Custom execute script, a JavaScript string.
