- ✔️ 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
- 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';