• Resolved nicoter

    (@nicoter)


    I have this file which I need to exclude:

    wp-content/plugins/conversation-watson/app.js

    I added app.js to the corresponding line in the settings, but Autoptimize keeps including the file in the combined JS file.

    What am I doing wrong or is this function broken?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    It’s probably excluded but minified (so you should see an autoptimize_single_xyz.js file), try unticking the “Minify excluded CSS and JS files?”-option and you’ll probably see app.js again nicoter.

    hope this helps,
    frank

    Thread Starter nicoter

    (@nicoter)

    Hey Frank,

    Thanks for the fast reply!

    That helped indeed. But tbh it makes no sense to still minify a file which has been added to the exclude list. Especially since the “Minify excluded CSS and JS files?” option is further down and easy to miss.

    Maybe add a note next to the exclude setting stating that it will still get minified?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Excluding .js file doesn’t work’ is closed to new replies.