From 09f33366a765b860555236af877e5f37b6886d02 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 23 May 2022 09:09:31 +0200 Subject: Add note about dev mode when testing a plugin --- support/doc/plugins/guide.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'support') diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md index 52e3b6052..e460f214e 100644 --- a/support/doc/plugins/guide.md +++ b/support/doc/plugins/guide.md @@ -1015,13 +1015,16 @@ You built files are in the `dist/` directory. Check `package.json` to correctly ### Test your plugin/theme +PeerTube dev server (ran with `npm run dev` on `localhost:3000`) can't inject plugin CSS. +It's the reason why we don't use the dev mode but build PeerTube instead. + You'll need to have a local PeerTube instance: * Follow the [dev prerequisites](https://github.com/Chocobozzz/PeerTube/blob/develop/.github/CONTRIBUTING.md#prerequisites) (to clone the repository, install dependencies and prepare the database) - * Build PeerTube (`--light` to only build the english language): + * Build PeerTube: ``` -$ npm run build -- --light +$ npm run build ``` * Build the CLI: -- cgit v1.2.3