You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doesn't respect webpack configuration if more than one is exported #56
If you export more than one configuration, onBuildEnd is fired after the first configuration is processed even if that configuration uses no plugins.
Also the last onBuildEnd definition overwrites all previously defined.
module.exports=[{entry: {client: ['./client.ts']},// will never fire..plugins: [newWebpackShellPlugin({onBuildEnd: ['echo "fin client"']})],
...
},{entry: {server: ['./server.ts']},// will fire when client is finishedplugins: [newWebpackShellPlugin({onBuildEnd: ['echo "fin server"']})],
...
}];
Activity
quilicicf commentedon Jun 14, 2018
Stumbled upon the second issue too (the last definition of onBuildEnd overwrites the previously defined one).
I was doing something like this:
In
webpack.config.js:In
webpack/webpack.config.dev.js:In
webpack/webpack.config.prod.js:And the last
requiredconfig was overriding the plugin's configuration.