Material components come from @material/* packages (yarn add @material/<package>, then rebuild the Docker image).
- Put the module next to its feature in
assets/(e.g.assets/Project/MyFeature.js). - Register it in
jsEntries(orcssEntries) invite/entries.mjs. - In the Twig template:
{{ vite_entry_script_tags('my_feature') }}/{{ vite_entry_link_tags('my_feature') }}. - Build with
yarn dev, or runyarn run dev-serverfor HMR. New page behavior should be a Stimulus controller inassets/controllers/instead of a new entry where possible.