Magento – How to exclude 3rd party JS files from minification

javascriptmagento2magento2.3minifyrequirejs

I have read these pages below:

and I still don't know how to modify config.xml to exclude 3rd party JS files

The module is from an extension by Mageplaza https://www.mageplaza.com/magento-2-social-share/

error

The code I add to the module config.xml is

        <dev>
            <js>
                <minify_exclude>
                    <config>https://static.addtoany.com/menu/page.js</config>
                </minify_exclude>
            </js>
        </dev>

Best Answer

Paste this after

<default>

in config.xml

    <dev>
        <js>
            <minify_exclude>
                <mpsocialshare>https://static.addtoany.com/menu/page.js
                </mpsocialshare>
            </minify_exclude>
        </js>
    </dev>
Related Topic