If none of the previous methods work for your project, you can write your own encore configuration:
Main entry points:
// shop
.addEntry('/vendor/bitbag/cms-plugin/src/Resources/assets/shop/entry.js')
// admin
.addEntry('/vendor/bitbag/cms-plugin/src/Resources/assets/admin/entry.js')
Style entry points:
// shop
.addStyleEntry('/vendor/bitbag/cms-plugin/src/Resources/assets/shop/scss/main.scss')
// admin
.addStyleEntry('/vendor/bitbag/cms-plugin/src/Resources/assets/admin/scss/main.scss')
Location of the pictures:
- shop:
/vendor/bitbag/cms-plugin/src/Resources/assets/shop/images/*
- admin:
/vendor/bitbag/cms-plugin/src/Resources/assets/admin/images/*
More information: Advanced Webpack Config