title: How to include custom js file in my custom theme?
body: <p>Using OroCommerce v4.1.8 (latest stable version).</p>
  <p>I have created my custom theme (extended from &quot;default&quot; theme) which renders correctly (all css is loaded and applied as defined), but for my custom JS file that does not appear to be included in the page. Below is my \Resources\views\layouts\mytheme\config\jsmodules.yml file:</p>
  <pre><code>    shim:
          jquery:
              expose:
                  - $
                  - jQuery
          magnificPopup:
              imports:
                  - jQuery=jquery
          owlCarousel:
              imports:
                  - jQuery=jquery
              exports: owlCarousel
      aliases:
          magnificPopup$: mytheme/js/magnific-popup.min
          owlCarousel$: mytheme/js/owl.carousel.min
          my-main$: mytheme/js/main
      dynamic-imports:
          mytheme:
              - magnificPopup
              - owlCarousel
              - my-main
  </code></pre>
  <p>On the webserver, I can see a compiled mytheme.js file getting created under /var/www/oroapp/public/layout-build/mytheme/chunk folder, but looking into the HTML for the home page, there is no line/reference to load this file.</p>
  <p>Please advise what am I missing or how to troubleshoot this?</p>