{!!"}, {!!"}, {!!"}, {!!"} ] }, plugins: [ new HtmlWebpackPlugin({ template: './src/index.html' }) ] }; PLUGINS class ExampleWebpackPlugin { apply(compiler) { compiler.hooks.emit.tapAsync('ExampleWebpackPlugin', (!!") !% { !& some code gets executed!!" }); compiler.hooks.run.tap('ExampleWebpackPlugin', (!!") !% { !& some code gets executed!!" }); compiler.hooks.done.tapAsync('ExampleWebpackPlugin', (!!") !% { !& some code gets executed!!" }); } }