Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 764 Bytes

File metadata and controls

24 lines (17 loc) · 764 Bytes

BitBag SyliusCmsPlugin

Installation - Import plugin entry into existing project entry.js files

  • ✔️ Same webpack configuration for plugin and project assets
  • ✔️ No need to edit templates - it's good for quick testing
  • ⚠ Assets are loaded globally which can affect page speed

  1. Just add these imports into your entry.js files
// ./assets/shop/entry.js
import '../../vendor/bitbag/cms-plugin/src/Resources/assets/shop/entry.js';

// ./assets/admin/entry.js - choose one of the following entries (CKeditor or Trix)
//CkEditor
import '../../vendor/bitbag/cms-plugin/src/Resources/assets/admin/entry.js';
// Trix
import '../../vendor/bitbag/cms-plugin/src/Resources/assets/admin/trix-entry.js';