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

Re: Excluding minified JavaScript file doesn't work

Hi @Furk,

 

I didn't tried but maybe this links will be useful:

 

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"