I want to optimize Angular APP with .Net Core
I use this Command in cmd
-> ng build --prod and it works fine to minify all Jscript files in \dist Folder
but i want to use gzip to compress those Jscript Files
I installed GZip-allhttps://www.npmjs.com/package/gzip-all
I use this Command
->ng build --prod && gzip-all \"dist/anti-fraud/.\"
and tried another one
ng build --prod && gzip-all \"dist/*.*\"
but it gives this message "'gzip-all' is not recognized as an internal or external command, operable program or batch file."
and this happens with any package i install like tar
->ng build --environment=prod && tar -zcvf archive.tar.gz dist/prod/*
also with Zipper
->ng build --prod && gzipper --verbose ./dist
gives Message"'gzipper' is not recognized as an internal or external command,
operable program or batch file."
and Not compress any file in dist folder
any help?
Edit:
I have find the solution
I have not installed gzip in the global so i installed it
->npm -g i gzip-all
then
ng build --prod && gzip-all dist/*.*
it works good :)