Closed StefanTodoran closed 1 year ago
UPDATE:
The script name has been changed to build.js
for easier autocomplete. The script was also reworked, fixing the clearing out of files. Asset removals should now be automatic (testing pending).
The build script now grabs all .js
, .html
and .css
files, so this issue is fixed.
The one remaining improvement might be to not require the .js
files to be in the js
folder and likewise for the .css
files, however this is good site structure and shouldn't be changed so it can stay.
Any change to site structure (new
html
files, removal ofhtml
files, or refactoring ofhtml
files) will immediately causeproduction.js
to fail catastrophically.The script also does not clear out the docs folder prior to running. This is an issue affecting both the mirroring of structure changes which involve removal of
html
files, but also for asset folder removals which are significantly more frequent. This is a silent issue in that nothing will break but it persists unnecessary bloat which could be deleted.