webpack-bundle-update-hook-plugin
Version:
Add a tapable 'bundle-update' hook to webpack. On bundle updates registered plugins get lists of new, changed and removed modules.
22 lines (16 loc) • 346 B
JavaScript
/**
* webpack config for tests
*/
var path = require('path');
var BundleUpdateHookPlugin = require('../src/plugin');
module.exports = {
context: path.join(__dirname, 'testSources'),
entry: './index',
output: {
path: '/',
filename: 'bundle.js'
},
plugins: [
new BundleUpdateHookPlugin()
]
};