Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.08 KB

01.5-non-webpack.md

File metadata and controls

40 lines (30 loc) · 1.08 KB

BitBag SyliusCmsPlugin

Installation - Non-webpack solution

  • ✔️ No need to have a bundler on the project
  • ✔️ No need to add plugin assets globally (you can add it to specific pages)
  • ✖️ No possibility to edit/extend assets

  1. Instal plugin assets using:
$ bin/console assets:install
  1. Add twig inclusions in your templates:
{# @SyliusAdminBundle/_scripts.html.twig #}
{% include '@SyliusUi/_javascripts.html.twig' with {
    'path': 'bundles/bitbagsyliuscmsplugin/build/bitbag-cms-admin.js'
} %}

{# @SyliusAdminBundle/_styles.html.twig #}
{% include '@SyliusUi/_stylesheets.html.twig' with {
    'path': 'bundles/bitbagsyliuscmsplugin/build/bitbag-cms-admin.css'
} %}

{# @SyliusShopBundle/_scripts.html.twig #}
{% include '@SyliusUi/_javascripts.html.twig' with {
    'path': 'bundles/bitbagsyliuscmsplugin/build/bitbag-cms-shop.js'
} %}

{# @SyliusShopBundle/_styles.html.twig #}
{% include '@SyliusUi/_stylesheets.html.twig' with {
    'path': 'bundles/bitbagsyliuscmsplugin/build/bitbag-cms-shop.css'
} %}