4

We got M2E pro installed on Magento 2.1.1. After enabling js Bundling under Config > Developer we have a not defined error on all m2e pro js.

Wondering is there any way how to exclude M2E pro related js from bundling? Or is it possible to bundle js only on frontend and exclude backend?

I tried to add following item to exclude list in theme::view.xml, but that did not work

<item type="directory">app/code/Ess/M2ePro/view/adminhtml/web/js</item>

Any advice will be much appreciated.

4
+50

If you want to exclude the js in Admin from Js bundling, we need to create a new backend admin: How to enable custom admin theme in Magento 2

In our custom view, add the exclude tag with our js:

app/design/adminhtml/{yourpackage}/{yourtheme}/etc/view.xml

<exclude>
    <item type="directory">Ess_M2ePro::js</item>
</exclude>

The same way if we want to exclude Js on the front page.

Read more about the exclude tag.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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