• Resolved Valentin Bora

    (@valentinbora)


    Hello.

    We’d like to use a minified version of the main CSS file public/assets/css/ea-style.css, but it seems the code at SP_EA_Front_Scripts::register_all_scripts does not do that.

    It also looks like you are including a .min.css with the plugin, but it’s not in use.

    Please let us know how to fix that.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Pulak Ahmed

    (@pulak00)

    Hi @valentinbora,

    Thanks for contacting us. Hope you are doing great today!

    The plugin will load the main CSS files when the debug mode is enabled. If the debug is set to false, then the minified version of the assets will be loaded.

    Still, we have created an improved version of the plugin that prioritizes loading the minified version. You can download it from here, and It would mean a lot to us if you could let us know if it works for you.

    We will try to improve to asset loading in the future versions of the plugin as well. Your understanding would be highly appreciated.

    Have a nice day!

    Thread Starter Valentin Bora

    (@valentinbora)

    Hello, Ahmed.

    Thank you for getting back to me. As a developer, I typically keep WP_DEBUG true, WP_DEBUG_DISPLAY false, and WP_DEBUG_LOG true.

    However, I understand the reasoning behind your approach, but was wondering if you could use a different constant at some point in the future, such as SCRIPT_DEBUG or maybe an option in your plugin settings.

    Have a lovely day ahead!

    Kind regards,
    Valentin

    Plugin Support Pulak Ahmed

    (@pulak00)

    Hi @valentinbora,

    Thanks for your understanding. I will forward the request to the development team and we will try to improve it in the future versions of the plugin.

    Have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Minified CSS enqueue’ is closed to new replies.