• Matteo

    (@matteofeduzi)


    Hello,

    it would be very useful to have the ability to regenerate the CSS file every time you save a post type that supports the Gutenberg editor.

    For example, if I save a page after adding blocks with Tailwind CSS v4 classes I would expect that upon autosave it would support the classes used in the frontend.

    How can I do this considering I am using a custom theme?

    Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joshua Gugun Siagian

    (@suabahasa)

    Hi @matteofeduzi,

    Generating cache are only needed when you have done made update to your site.

    Instead of running the “generate cache” task on each save, I recommend you enable the “Admin always use Play CDN” option on the WindPress setting page. This option will load Tailwind’s Engine on the front page for users with an Admin role and generate all classes used on the fly.

    Once you have done your work, you can generate the cache by following this guide: https://wind.press/docs/advanced/cache#generating-the-cached-css.

    Thread Starter Matteo

    (@matteofeduzi)

    Thank you for your answer, but that’s not what I asked.

    I want every time I save any page, post or post type that uses Gutenberg to regenerate the CSS cache file.

    Always going to the plugin to click Generate is very annoying.

    I also want the frontend like the backend to be updated accordingly when I save the post.

    Thank you very much!

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