greghunt / tailpress

Seamlessly add Tailwind to your WordPress site without any build steps.
4 stars 2 forks source link

Verify caching filesystem permissions on different environments #12

Open greghunt opened 1 year ago

greghunt commented 1 year ago

https://wordpress.org/support/topic/styles-breaks-randomly/

joshuajacoby commented 1 year ago

Same issue going on here, I can give you access to a staging site I created if you want to test this. I circumvented this by adding this to the functions.php file. Not an ideal solution, but hope it helps in debugging this issue.

function enqueue_twind_script() {
    wp_enqueue_script( 'twind-script', '/wp-content/plugins/tailpress/js/twind.cdn.1.0.5.js', array(), '1.0.5', false );
}
add_action( 'wp_enqueue_scripts', 'enqueue_twind_script' );
therealrodk commented 1 year ago

Spent hours building a page with Tailwind, only to have this happen. This is my first time using this plugin, and first time with this issue. Thankfully only in development. Clicking the button to clear the CSS cache helped, but I can't have this happen in production.