event-callback-webpack-plugin
Install
npm install --save-dev event-callback-webpack-plugin
Usage
const EventCallbackWebpackPlugin = require('event-callback-webpack-plugin').default;
module.exports = {
plugins: [
new EventCallbackWebpackPlugin('done', () => {
console.log('Hello World!');
})
]
}
Or
import EventCallbackWebpackPlugin from 'event-callback-webpack-plugin';
export default {
plugins: [
new EventCallbackWebpackPlugin('done', () => {
console.log('Hello World!');
})
]
};
Options
event
- (require) webpack event.callback
- (require) callback function.
Contribution
Feel free to push your code if you agree with publishing under the MIT license.