After making changes to files and running compass compile
, the compiled files remain even if they are renamed or deleted. Similarly, compass clean
does not remove these old files as it only focuses on cleaning up current files in use. I want to avoid completely wiping out all files in my compiled folder with a command like rm -rf /css/*
.
I am looking for a way to selectively delete these outdated compiled files without affecting any currently utilized files.
The reason behind this request is that generating files or sprites from numerous scss files can be time-consuming. This becomes problematic when further modifications or derivations need to be made to these generated files for an older build process or documentation generation. Completely regenerating all files by blowing them away can be inefficient, whereas only removing unnecessary files before recompiling would be much quicker.
We have considered manually deleting unnecessary files and then recompiling using the following steps:
compass clean
rm -rf css/*
compass compile
However, we are hopeful for a more efficient solution :).