Closed zachsa closed 2 years ago
What is the reason you cannot just use client/html/##.html
as the dep and .cache/##.html
as the target?
Does the double hash find nested HTML files?
Yes that is what the double interpolate form is for.
This doesn't work as I want to normalize the output directory to be flat.
Right, but flattening is by definition a many to one mapping, which cannot be supported in interpolation as interpolation must be fully reversible in its analysis.
I see - thank you
Currently I have a task for generating import maps that is run on changes to an html file:
I would like to be able to change the location of the html files, so that the deps becomes
client/pages/**/#.html
. I think this is generally useful (although since this job is always re-run for all html files I can just remove the interpolation from this and discover HTML files manually)In this case the output of .cache is a rollup build that contains an unknown number of chunks