Closed bobc82 closed 6 years ago
I found the solution at this question. I used gulp-concat-css to concatenate al css files into a bundle and after i minified the bundle.css file with postcss:
postcss src/bundle.css > src/bundle.min.css
To do this on the CLI, do:
cat src/plugins/bootstrap/css/bootstrap.css src/plugins/animatecss/css/animate.css | postcss > src/compiled.min.css
Thank you!
I installed cssnano following these step: http://cssnano.co/guides/getting-started/
Into the root of my project i ran:
After i installed postcss-cli:
Finally i created postcss.config.js file following the guide:
I was able to minify only a file. In the roow of my project i executed:
But i'm not able to include multiple input files (and i don't know if it's possible) as i did in gulp. When i try to run a command of this type:
There was the following output:
Can someone suggest me a step guide how to minify multiple input files with postcss-cli? (I didn't be able to find some simple step-by-step tutorial).