-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WP-SCSS does nothing. No compile. No output. No error. No log. #45
Comments
I'm finding the same behavior in MAMP running php 5.6.2 and WordPress 4.3.1. The scss file is called site.scss and in the /css folder the site.css has this in it |
Sorry I figured out that I needed to add define('WP_SCSS_ALWAYS_RECOMPILE', true); in my functions file for it to work. Thanks for the plug-in |
I believe that causes the scss to recompile every time the page is loaded. Not a viable solution other than in dev. From what I understand from the documentation, its supposed to know to recompile every time there's a change to any of the scss files in the sass folder... |
My theme doesn't use WordPress's standard head functions, so I had to edit the plugin. In wp-scss.php in the plugin's root folder, I changed: add_action('wp_head', 'wp_scss_needs_compiling'); to add_action( 'wp_loaded', 'wp_scss_needs_compiling' ); |
@gavin310 solution worked for me, is this change going to be made in the plugin? |
We can look into this. Would wp_loaded be a better hook for the plugin to use by default? |
Based on what I see here, I wonder if |
@garrettw that looks promising. It would ensure that the function fires every time, while also keeping it before theme load. We'll test this. |
That worked for me too! Thanks! |
Guys, since recent update, my SCSS wasn't compiling anymore so after loads of time wasting trying to find out why, I found out that define('WP_SCSS_ALWAYS_RECOMPILE', true); was required for me too. Try to prevent this in future releases or at least add a setting in plugin to turn this on without searching half the net. Rigid testing may also help. |
I'm using child theme, with directory structure:
WP-SCSS settings:
After making changes to main.scss, it doesn't compile or update main.css
What is the problem here?
The text was updated successfully, but these errors were encountered: