70 %

netlify build plugins

Netlify Build Plugins

the plugin

JS
function netlifyPlugin(conf) {
return {
// Plugin Name
name: 'my-first-plugin',
// Hook into lifecycle
onEnd: () => {
console.log("site build finished, site deployed! 🚀")
}
}
}
module.exports = netlifyPlugin

netlify.toml

yaml
plugins:
# Local plugin
- type: ./plugins/exampleplugin