Closed leandroluk closed 6 years ago
Hi @leandroluk,
CSS-Purge as a standalone tool/library has been designed to merge 1 to many inputs into a single output (See Overview: http://rbtech.github.io/css-purge).
To repeat the process, you should use an automated build process...
Here's my example using gulp and the gulp-css-purge plugin to get your desired output: https://github.com/rbtech/gulp-css-purge-example
For grunt users: https://github.com/dominikwilkowski/grunt-css-purge
I'm using your library to clean up my CSS and reduce the files and would like to know if there's any way I can get all the files in a directory and minimize them to the same directory but with the postfix '.min.css'.
Today I have the script in my
package.json
file so:But I have other files in the directory ... I even tried to use regular expressions, or setting the directory to the input and also to the output but the library does not work.
Is there any way (using your library) to compile all the files in the directory to the same name? (as in the example below):
before:
after: