Update bootstrap-theme.rst

This commit is contained in:
Florian Merle 2023-11-09 17:52:05 +01:00 committed by GitHub
parent 573052777a
commit 24148df10a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ In the ``config/packages/assets.yaml`` add:
bootstrapTheme:
json_manifest_path: '%kernel.project_dir%/public/bootstrap-theme/manifest.json'
and in the ``config/packages/webpack_encore.yaml`` add:
in the ``config/packages/webpack_encore.yaml`` add:
.. code-block:: yaml
@ -129,6 +129,13 @@ and in the ``config/packages/webpack_encore.yaml`` add:
builds:
bootstrapTheme: '%kernel.project_dir%/public/bootstrap-theme'
finally in the ``config/packages/_sylius.yaml`` add:
.. code-block:: yaml
sylius_theme:
legacy_mode: true # for sylius 1.9, 1.10, 1.11, 1.12
Now you can use one of the commands ``yarn encore dev``, ``yarn encore production`` or ``yarn encore dev-server``
to compile all assets. Open the page - everything should work.