on the angulardart official website, I can not find any docs related to production deployment. I prefer command line way, so far I find out I can do webdev build
to generate a build/
directory. But there are still some more questions:
I want to clarify what files I should deploy to the production server. I think they should be
favicon.ico, index.html, main.dart.js, styles.css
4 files, right?Why does it generate
.build.manifest, .packages, packages/
? two files and one directory which contains many directories and files. They are just confusing me. This is for production. Why do I ever want to have those files? Should I write a deploy script to simply auto-remove them?It seems the generated
main.dart.js
is a minimized js file. But why are there many useless newlines in it? How to get rid of those useless newlines properly by using angulardart way? I can do that with gulp, but I don't want to use gulp if dart can handle this.How to minimize html and css files properly by using angulardart way? for example,
index.html
andstyles.css
. Again, I can do that with gulp, but I don't want to use gulp if dart can handle this.
Thank you very much for your help.