aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'support/doc/plugins')
-rw-r--r--support/doc/plugins/guide.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md
index 41d70c372..d6d2114da 100644
--- a/support/doc/plugins/guide.md
+++ b/support/doc/plugins/guide.md
@@ -498,6 +498,31 @@ Translation files are just objects, with the english sentence as the key and the
498} 498}
499``` 499```
500 500
501### Build your plugin
502
503If you added client scripts, you'll need to build them using webpack.
504
505Install webpack:
506
507```
508$ npm install
509```
510
511Add/update your files in the `clientFiles` array of `webpack.config.js`:
512
513```
514$ $EDITOR ./webpack.config.js
515```
516
517Build your client files:
518
519```
520$ npm run build
521```
522
523You built files are in the `dist/` directory. Check `package.json` to correctly point to them.
524
525
501### Test your plugin/theme 526### Test your plugin/theme
502 527
503You'll need to have a local PeerTube instance: 528You'll need to have a local PeerTube instance: