ConnectThink / WP-SCSS

Wordpress Plugin that compiles sass using scssphp
http://wordpress.org/plugins/wp-scss/
248 stars 76 forks source link

Can WP-SCSS be used independent of theme #139

Open Timoti opened 4 years ago

Timoti commented 4 years ago

I'm trying a lo-code approach where i don't set up a subtheme, or fork the active (Kadence) theme. Can this plugin be configured to compile outside of theme and still compile and queue correctly? If so, where is best?

Many thanks!

richrd commented 4 years ago

I think you can. You can just create the scss and css directories wherever you want (and make them writable). For example if you put them at /wp-content/scss and /wp-content/css your WP-SCSS path settings should be /../../scss/ and /../../css/. Then just enable automatic enqueueing and it should work. WP-SCSS looks for the paths in /wp-content/themes/yourtheme so adding../../ makes it look for them two directories up (in wp-content)

shadoath commented 3 years ago

@Timoti Please take a look at the new PR #160 which gives three location for the base dir to be set. You can also use @richrd's comment to work around it.