Skip to content
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

Autoupdate Problem with Parent Theme #114

Open
JulianSteinmann opened this issue Oct 2, 2018 · 2 comments
Open

Autoupdate Problem with Parent Theme #114

JulianSteinmann opened this issue Oct 2, 2018 · 2 comments

Comments

@JulianSteinmann
Copy link

JulianSteinmann commented Oct 2, 2018

I tried to import the scss file of the parent theme. This worked with the code below. But now it does not re-compile when files (in the parent theme) are changed.

@import '../../parent-theme/sass/style';

When deleting this import line – save the file – and reinserting it. It compiles fine.

Any idea why this is or how this could be fixed?

Thanks a lot for your help

@richrd
Copy link

richrd commented Nov 3, 2018

I have the same issue. I think it would be great if this could be generalized in some universal way.
In my use case I have a parent and child theme that both use SCSS and I'm relying on WP-SCSS for compiling the SCSS (the child theme imports the main file from the parent theme). I think this is brilliant for theme development, so thanks for the plugin! ❤️

I assume that WP-SCSS only looks for changes in the SCSS directory specified in the settings and thus isn't able to detect changes to the parent files, because they're chilling in a different directory from what the plugin is watching.

@shadoath
Copy link
Collaborator

shadoath commented Feb 15, 2021

@richrd that's precisely correct.
I welcome any Ideas on how to implement either:

  • multiple SCSS directories
  • checking parent imports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants