New features
This release exposes the config
object as the second parameter of the afterBuild
event function, so you can read it like this:
// config.production.js
module.exports = {
// ...
events: {
afterBuild(files, config) {
const env = config.env
// do stuff with env
}
}
}