Support » Plugin: Merge + Minify + Refresh » Works with caveats

  • It seems to me that:
    * if the CSS files has @includes it will not work. The option to skip CSS seems to be ignored
    * If the site is password protected (htpasswd protected site) the minifying part will be skipped.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author launchinteractive

    (@launchinteractive)

    MMR doesn’t support @include as its a Sass thing. Minification with a htpasswd protected site should work however. It might take longer to do the minification but I see no reason why it wouldn’t work.

    Thread Starter thorsenrune

    (@thorsenrune)

    I think the minification runs at a later time. That means that the credentials seems to become lost and the cron job cannot login to the site. One can just temporarily remove protection offcourse.

    @include should be standard CSS as far as I understand. However ticking the flag in options seems to do noting so I hardhacked the code to skip minification of CSS so that works.

    Hope my reply is useful for further dev.

    Plugin Author launchinteractive

    (@launchinteractive)

    Minification is performed on a wp-cron which is created by a page load, or on a schedule as a backup. It is possible wp-cron is not firing. Are you able to check that it is working?

    Do you mean @import? @import is standard CSS, whereas @include is a Sass thing. MMR will not merge files that have @import. This is to ensure compatibility. If you know that your CSS doesn’t have any @import statements then you can skip checking for extra speed.

    Thread Starter thorsenrune

    (@thorsenrune)

    Yes, you are right sorry for the confusion. I have a :
    @import './coloursonly.css';
    statement
    However at my side the flag for skipping CSS does not work and minification of CSS with @import ‘./coloursonly.css’; does not work.

    Im not sure about the cron but it does not minify if the folder is .htpasswd protected

    Plugin Author launchinteractive

    (@launchinteractive)

    Do you have any errors in the logs?
    Also, if you can change the @import to a wp_enqueue then I believe you will get a better result.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this review.