Use webpack-shell-plugin onBuildExit event, so bundled files are also copied when using webpack watch too.

This commit is contained in:
Rafael Barbosa Lopes 2018-02-19 00:31:25 -03:00
parent 2219858764
commit 713de8cda7

View file

@ -39,7 +39,7 @@ module.exports = {
}),
new WebpackShellPlugin({
onBuildEnd: 'node copy-to-examples.js'
onBuildExit: 'node copy-to-examples.js'
})
],