.. _connect-typo3:
==========================
Connect the build to TYPO3
==========================
Add the connector Site Set to the site's active Site Set dependencies. Keep
the dependencies the sitepackage already needs:
.. code-block:: yaml
:caption: packages/my_sitepackage/Configuration/Sets/Sitepackage/config.yaml
name: vendor/my-sitepackage
dependencies:
- skom/stylex-connector
For TYPO3 12 or a site without Site Sets, import the connector's supplied
TypoScript setup and constants in the sitepackage instead:
.. code-block:: typoscript
@import 'EXT:stylex_connector/Configuration/TypoScript/setup.typoscript'
@import 'EXT:stylex_connector/Configuration/TypoScript/constants.typoscript'
Neither Site Sets nor TypoScript generate the StyleX manifest. Register the
exact output path configured in :doc:`Vite` from the sitepackage:
.. code-block:: php
:caption: packages/my_sitepackage/ext_localconf.php