"test": /\.ts$/,
"loaders": ["@ngtools/webpack", "angular-router-loader?aot=false&genDir=compiled&loader=system"]
Thanks for the quick response. I think it is very valuable for short term as these are the issues we are currently facing with AOT solution...
- AOT does not work with file changes during development properly and the build time is very long for each file change.
- we have 70+ locales integrated with Angular 4 app and AOT pre-builts the app for each locales and it takes in excess of 20 minutes which is very slow for both development and release process.
My plans for short term -Use JIT for development purposes.
AOT for production builds
refactor codebase to allow dynamic loading of locales..
As long as you realise the JIT is not a solution, there is nothing wrong with using it temporarily. Here is a git issue that goes into details. Please note that this is not officially supported!
- AOT does not work with file changes during development properly and the build time is very long for each file change.While I'm aware of this, I also know that this is under active development. Soon(ish) the build time will be much better.
- we have 70+ locales integrated with Angular 4 app and AOT pre-builts the app for each locales and it takes in excess of 20 minutes which is very slow for both development and release process.70+ locales, that sounds like a big challenge. Do you really need all of those in development? With a project this size, I'm pretty sure you have (or should have) a staging environment. Staging should test all languages, so you don't have to do this during development all the time. 20 minutes sounds horrible!
--
You received this message because you are subscribed to a topic in the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/DVfFvDUPSUk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
refactor codebase to allow dynamic loading of locales..Euhm. I know the core team is also working on this. I don't have any time-frames or details, but perhaps this doesn't need to be on your plate only. Let me check some things.