We are creating multiple websites in one magento 2 instance with a custom theme. Those websites are not supposed to be shops. They all are serving one simple page without any of magento's functionality. They are simple one-pagers that exist for SEO purposes.

But unfortunately when I enable the require-js functionality magento keeps loading all the default JS files that hardly anybody needs or knows about.

Is there a way to clear all those files before starting from scratch? All I really need is jquery and maybe a couple more libraries but not all the shop overhead (100+ unused JS files).

Thank you.


1 Answer 1


unfortunately current we can't remove loaded js from default inside custom theme

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.