Skip to content

Commit 24bfdda

Browse files
committed
hand-written plugin
1 parent 124c4fa commit 24bfdda

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

netlify.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dev:
1313
NODE_ENV: development
1414

1515
plugins:
16-
- package: "@netlify/plugin-sitemap"
17-
config:
18-
buildDir: dist
16+
# - package: "@netlify/plugin-sitemap"
17+
# config:
18+
# buildDir: dist
19+
- type: ./plugins/doThing

plugins/doThing/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
function netlifyPlugin() {
2+
return {
3+
name: "my-first-plugin",
4+
onBuild: () => {
5+
console.log("Site has built!");
6+
}
7+
};
8+
}
9+
10+
module.exports = netlifyPlugin;

0 commit comments

Comments
 (0)