0

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.

4
  • try this --- magento.stackexchange.com/questions/148914/… Commented Apr 24, 2020 at 11:41
  • Well, this would mean I had to remove each and every file one by one. Not a very suitable way of going forward. I was aware of this method. What I am aiming at is a total reset. Commented Apr 24, 2020 at 13:23
  • I think no but check this link in last --- devdocs.magento.com/guides/v2.3/javascript-dev-guide/javascript/… Commented Apr 24, 2020 at 19:00
  • did you tried selecting blank as a parent theme for your custom theme Commented Jul 23, 2020 at 6:43

1 Answer 1

0

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.