Closed strarsis closed 5 years ago
@Log1x: Related roots discourse discussion: https://discourse.roots.io/t/asset-lookup-while-watching/12640
I'm going to rewrite and fix a lot of these issues here shortly as I plan on using this in a project I'm currently working on.
I think it went in the wrong direction with a couple of the recent commits. There are a few things to consider:
dist
or keep it defaulted to assets
since, like the above, it's being read by the file system. At that point, it'd come down to if the assets
folder is being pushed to the production server or not. But related to the roots discourse discussion above, whether the SVG's should actually live with the other assets while being used inline, is another point that needs to be addressed.
When using watch in sage9 theme using
yarn start
, the production assets indist/
are cleaned up, henceblade-svg-sage
can't find the SVGs and the page fails to load. How can it be configured to look for the SVGs in assets directory instead?I have to use this workaround while watching: