I cannot seem to understand how I can work directly on the sass files of plugins such as WooCommerce in Sage 9, instead of overriding them.
I have read the Sage eBook, this post: Sage + Woocommerce - how to handle stylesheets? and also the sources @ben cites in his answer there.
I can’t even find the manifest.json that is being talked about. I understand that the goal is to actually copy the sass file of, let’s say, woocommerce, and then let it compile through yarn, just like a regular stylesheet.
The problem is, however, when I follow the solution for this here Sage + Woocommerce - how to handle stylesheets?, that the stylesheets are looking for fonts, images, etc. all in the theme folder (because the woocommerce.scss stylesheet relatively links them).
I would have to either copy all the assets to the theme directories and override the urls, which I do not find very practical, or find a way to “tell” how to compile using the assets in the plugins folder. This is what I supposed the manifest.json was for, but I do not find that file or find and example walk-through of how that all is supposed to work.
Am I overlooking something?
I wonder if there is anybody who did this and can share the steps. Also, I wonder if you prefer enqueing the woocommerce stylesheet (and js) depending on body-classes (if woocommerce is even necessary) and how you accomplish that. The eBook unfortunately does not explain this - neither for WooCommerce, nor for any other third-party plugin.