You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_guide/your-first-component.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,10 @@ By convention Catalyst controllers end in `Element`; Catalyst will omit this whe
33
33
Remember! A class name _must_ include at least two CamelCased words (not including the `Element` suffix). One-word elements will raise exceptions. Example of good names: `UserListElement`, `SubTaskElement`, `PagerContainerElement`
34
34
{% endcapture %}{% include callout.md %}
35
35
36
+
{% capture callout %}
37
+
When using build tools, some JavaScript minifiers might modify the class name that Catalyst relies on. A best-practice is to allow classnames that end with `Element`. In particular, for Terser, you can use the following config: `{ keep_classnames: /Element$/ }`
0 commit comments