cancel
Showing results for 
Search instead for 
Did you mean: 

Excluding minified JavaScript file doesn't work

Excluding minified JavaScript file doesn't work

 

I'm trying to exclude a javascript file from getting minified. I've added the following code in etc/config.xml but I can still see file_name.min.js file is being created and requested from frontend. What is missing in this solution?

 

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
    <default>
        <dev>
            <js>
                <minify_exclude>
                    /Module_Name/js/file_name.js
                </minify_exclude>
            </js>
        </dev>
    </default>
</config>

 

 

 

1 REPLY 1

Re: Excluding minified JavaScript file doesn't work