garden icon indicating copy to clipboard operation
garden copied to clipboard

Compiler was not able to output to paths where some folder did not exist yet

Open AlexAti opened this issue 1 year ago • 0 comments

The compiler uses until now the spit function to create the file where the output Is written.

Typically outputs of the compiler are written to a target or public folder that holds autogenerated css, js, html. It is not untypical that a cleaning workflow removes the whole folder that contains autogenerated files, and that would mean that next runs of the compiler would not be able to complete the action as the folder no longer exists.

There is an existing function precisely for this, to be called before spit. I've just added it.

AlexAti avatar Nov 28 '24 05:11 AlexAti