Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy Angular-CLI as zip archive

How to modify/extend a new Angular CLI 1.6 (and later) project so after running ng build --prod we also generate a ZIP archive of the production website?

I want it to be an integral part of the CLI build process, if possible, and not a custom external solution (which I'm currently using).

like image 651
vitaly-t Avatar asked Jan 17 '18 14:01

vitaly-t


1 Answers

I have tried using java cmd and it working:

let run:

jar -cMf target.zip dist

or:

jar -cMf target.zip *

read more in here: Java creating .jar file

like image 112
phuong van huu Avatar answered Oct 09 '22 09:10

phuong van huu