• Resolved deewinc

    (@deewinc)


    Hello,

    I have this specific JS that I want to exclude from being minified. Unfortunately, W3TC still minifies it anyway.

    I have set minification settings to Auto. I find manual minification technical. Kindly help on this one.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @deewinc

    I am sorry about the issue you are experiencing with excluding the file from being minified and I am happy to assist you with this.
    You simply need to add the path to the file in Performance>Minify>Advanced>”Never minify following JS files”:
    For example
    /wp-content/plugins/some-plugin/assets/js/some-js-file.js
    Make sure to save all settings and purge the cache after adding the file.
    Thanks!

    Thread Starter deewinc

    (@deewinc)

    Hello,

    That works. Thanks.

    Just wondering. How can I exclude a whole directory for a plugin. In Autoptimzie for instance, all you do is set the directory location for the file
    /wp-content/plugins/some-plugin/

    How about W3TC?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @deewinc

    Thank you for the information. Glad to know the issue is resolved.
    To answer the other question, no unfortunately you cannot exclude the entire directory from being minified, just a specific file, one by one!
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Help! Exclude JS from minify not working’ is closed to new replies.