Comments (10)
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
from wp-scss.
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...
from wp-scss.
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' );
from wp-scss.
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
/*# sourceMappingURL=site.css.map */
from wp-scss.
@gavin310 solution worked for me, is this change going to be made in the plugin?
from wp-scss.
We can look into this. Would wp_loaded be a better hook for the plugin to use by default?
from wp-scss.
Based on what I see here, I wonder if setup_theme
might actually be the ideal hook to use. But of course, enqueueing stylesheets needs to go elsewhere.
from wp-scss.
@garrettw that looks promising. It would ensure that the function fires every time, while also keeping it before theme load. We'll test this.
from wp-scss.
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
That worked for me too! Thanks!
from wp-scss.
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.
from wp-scss.
Related Issues (20)
- CSS rule filter: invert() creates error message HOT 2
- Settings are not getting stored HOT 3
- Improving performance HOT 5
- Add a version to the compiled scss file
- Source Map Issue HOT 4
- File Permission Error, permission denied. Please make the cache directory writable. HOT 7
- Update scssphp to v1.10.0 HOT 2
- ":not()" is crashing Wordpress HOT 6
- Can not change colors HOT 2
- Conflicting with any kind of infinite scroll plugin. HOT 2
- Wrong path in header generated HOT 2
- Warning: Array to string conversion HOT 3
- Version 3.0 Crashed my entire site - (Resolved) HOT 33
- Error with 3.0 Update: Uncaught Error: Class "ScssPhp\ScssPhp\Block\MediaBlock" #630 HOT 4
- Looking for a new maintainer HOT 7
- What would a Premium version of WP-SCSS look like? HOT 2
- 4.0.2 causing error in commented out SCSS HOT 2
- PHP 8.2 Creation of dynamic property ... is deprecated HOT 2
- PHP Warning: No such file or directory HOT 2
- formatting breaks grid-template-areas
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-scss.