Skip to content

Js from third-party module isn't called with dev/js/merge_files 1 #347

Answered by vovayatsyuk
acromatica asked this question in 1. Help
Discussion options

You must be logged in to vote

Hello!

Yes, there is a difference in how scripts behave when bundled or not.

When the script is not bundled Breeze tries to automatically assign its component according to filepath. When the script is bundled we can't do that.

There are two ways of fixing this issue:

  1. Move the script to dynamic bundle, or use load rules, so it will never be bundled.
  2. Add component: 'Magefan_Blog/js/lazyload' to the component as described in the integration tutorial: https://breezefront.com/docs/integration-example#3-add-component-name

p.s. We already have an integration with magefan/blog, so I welcome you to add a PR with lazyload integration :)
p.p.s We use load rules in our integration. Have a look: htt…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@acromatica
Comment options

Answer selected by acromatica
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants