WordPress.org

Support

Support » Plugins and Hacks » Igonring directory from JS minify

Igonring directory from JS minify

  • Hello everybody,

    i have a problem with W3 Total Cache JS minify.

    I wanted it to be turned on, but i also want to make it ignore a file in this directory: wp-content/plugins/wp-comment-master/cm.js.

    Now, i’ve added this path into the text box that says “Never minify the following pages”, but it still does include this file into the minified JS and hat breaks my functionality on the frontend.

    Can anybody help me solving this?

    Thanks,

    Veljko Simovic

    http://wordpress.org/extend/plugins/w3-total-cache/

Viewing 7 replies - 1 through 7 (of 7 total)
  • bheadrick
    Participant

    @bheadrick

    there’s no setting ignore js/css files to minify. Pretty much the only way to exercise any control over what is minified is to use the manual option instead of auto.

    tripatwhat
    Member

    @tripatwhat

    Actually when you go to minify part in W3TC you will see a text field where you can enter pages or directories you want to exclude from minify.

    1. Or i am not entering the path to the file correctly (i tried absolute and relative)

    2. Or this excluding doesn’t work properly.

    It would be great if somebody from W3TC support could assist me on this.

    bheadrick
    Participant

    @bheadrick

    I’m pretty sure that’s referring to whether files are minified on specific pages or directories under which the pages are in – not the files themselves.

    tripatwhat
    Member

    @tripatwhat

    But when i go to the page cache i see for example this file in exception list: wp-locations.php

    This the file in the root of the website which is not connected directly to any specific page.

    So if this file can be skipped on page cache why shouldn’t be possible to skip any of the plugin files in minify?

    Plugin Author Frederick Townes
    Member

    @fredericktownes

    @bheadrik is correct. Latest version has a textarea to exclude JS/CSS files though.

    Does it work? I am not having any luck getting it to not minify specific files either. I’m entering the name of the JS file that I want to not be minified in the “Never minify the following JS files:” field

    tripatwhat
    Member

    @tripatwhat

    Well i’ve managed to make it work. When i enter absolute path for each file i want to minify then it works. For example:

    http://www.yourdomain.com/wp-content/plugins/plugin/somefile.js

    But if you want to do the same with relative path it wont’ work. For example, if you insert this kind of path:
    wp-content/plugins/plugin/somefile.js

    Hope this helps.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Igonring directory from JS minify’ is closed to new replies.