Yes, your understanding is correct. When you install and configure a theme or theme component on the server, its JS and CSS assets are compiled and optimised as part of the forum’s overall asset pipeline.
相关话题
话题 | 回复 | 浏览量 | 活动 | |
---|---|---|---|---|
Defer loading JavaScript in Themes and Components | 4 | 1944 | 2022 年4 月 7 日 | |
Javascript assets in a theme component | 15 | 2033 | 2021 年5 月 7 日 | |
Developing Discourse Themes & Theme Components | 15 | 104927 | 2025 年3 月 18 日 | |
Discourse-webpack: A boilerplate for developing JS-heavy Discourse components | 3 | 1881 | 2022 年1 月 13 日 | |
Beginner's guide to using Discourse Themes | 11 | 80019 | 2025 年3 月 26 日 |