Support » Plugin: W3 Total Cache » regular expression to exclude plugin js or css

  • Praj

    (@prajakta-gadhave)


    Hello,

    I want to use regular expression that will exclude all css and js files from my plugin to be minified. is it possible?

    Waiting for quick reply

Viewing 5 replies - 1 through 5 (of 5 total)
  • Praj

    (@prajakta-gadhave)

    I want to use regular expression here – http://goo.gl/N0aQrX

    [moderator: link is] http://screenshots.sharkz.in/prajakta/2016/09/ShareX_2016-09-12_19-17-04.png

    • This reply was modified 1 year, 3 months ago by  Steve Stern.
    • This reply was modified 1 year, 3 months ago by  Steve Stern.
    Ashok

    (@bappidgreat)

    @prajakta-gadhave, I don’t think this is possible, or I am missing something. But I believe this would be useful. If you don’t found a solution, you can create a feature request from Dashboard > Performance > Support tab.

    Have a good day!

    Cheers
    Ash

    Hmmm, I could write the necessary code to handle regex since its pretty quick and easy to do, and then have it integrated into the w3tc community build. Seems like fun. I might get to it in a few days or next week. Right now i’m working on other things in w3tc.

    Kimberly

    • This reply was modified 1 year, 3 months ago by  Kimberly.

    Ok it now supports regular expressions for the areas you described. I decided to expand this support by making many of the multi-line textbox fields under Page Cache & Minify as regex aware.

    I’m sure you’ve moved on so i don’t expect you will ever see this, but at least it will be a feature for other users. For others who do see this and want to give it a try check out the community-driven fix-w3tc.

    Regards,
    Kimberly

    • This reply was modified 1 year, 2 months ago by  Kimberly.
    dshakya

    (@dshakya)

    Hi Kimberley,

    I have set the regular expression for Minify tab > Include external files/libraries and checked the Use Regular Expression for matching box but W3TC is NOT COMBINING those files. Using Version 0.9.5.2 with WordPress 4.7.2

    /https:\/\/example\.com\/wp-content\/plugins\/revslider\/public\/assets\/js\/extensions\/revolution.extension\.[a-zA-Z0-9]+\.min.js/g

    Am I doing something wrong?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘regular expression to exclude plugin js or css’ is closed to new replies.