angular-aot-demo
angular-aot-demo copied to clipboard
angular2-template-compiler
Hi,
first of all, thank you for this repo. It really helped me to get started with AOT.
I've noticed, that you are using the angular2-template-compiler in the common webpack-config-file and so you are also lining in the templates when using AOT. If I see this right, omiting it could bring some bytes for AOT-scenarios.
Wishes, Manfred
Oh, sorry, I mean angular2-template-loader and not angular2-template-compiler ...
@manfredsteyer I'm using this loader so webpack can load and bundle the HTML template files, when using templateUrl
.
Do you have another option in mind?
In general, this is a good thing. But your config is also using it in aot-mode although IMHO you don't need to inline templates in aot mode, cause they are getting compiled anyway. I've played around with it a bit and managed to reduce filesize in aot mode by omitting it.
Oh. Right. That make sense in AOT. Do you have a PR ready?
I will create one thouse days.