WeareJH / config-gen

Generate RequireJS Optimizer configuration for a Magento 2 website based on real-world usage.
84 stars 9 forks source link

should parse entire magento-generated requirejs-config file #32

Closed shakyShane closed 6 years ago

shakyShane commented 6 years ago

It turned out, you cannot ask requireJS in the browser for the correct 'merged' config as it does some collapsing at run time that renders it invalid for the build process (eg: dropping some top-level 'deps')

Instead, just parse the entire file pulling out only the config