-
Notifications
You must be signed in to change notification settings - Fork 12k
incremental builds without watch mode #7467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Webpack has a plugin called DllPlugin that enables this. Is this plugin compatible with |
Heya, regarding DllPlugin, there are technical problems that prevent us from using it (see #4565 for more information). I'm not sure what you mean by The approach you described could be done through https://github.com/mzgoddard/hard-source-webpack-plugin. But this is not something I think is a good idea, because there's a lot of things that can affect builds and there's really no guarantee the intermediate the cache is still valid between sessions. Changes in webpack/cli/plugin versions can make different builds, and so can code changes. I'd expect |
Thanks for the response. I have found that On an example repo with very little code, rebuilds under watch mode take 0.5 sec - 3 sec (depending on whether AoT is enabled), and Regarding the I hope that your team can make progress on #4565 -- in the meantime, it sounds like that issue has already captured my use case and this one can be closed as a duplicate, if you wish. Thanks again! |
Actually, #4565 would only really affect rebuilds. The only thing in webpackland that can cut down the initial build time is the hard source plugin, but it is sensitive to the problems we discussed and you've experienced. |
This is an experimental option to use a cache between builds. Fix angular#7467
This is an experimental option to use a cache between builds. Fix angular#7467
Also relevant, this problem is getting some traction as an issue in webpack proper: webpack/webpack#250 /cc @intellix |
Once webpack 5 is out, or we introduce Bazel support we'll have this feature. It's definitely on the roadmap. The CLI, however, is not the correct place to follow the progress. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
Desired functionality.
I'd like
ng build
to be just as fast on rebuilds asng watch
is.In other words, is it possible to tell
ng build
to keep (on disk) the same intermediate data thatng watch
does to make recompiles fast?Mention any other details that might be useful.
We use a
GNUmakefile
, and I've plumbedng build
into that makefile. For most of my team members, it's easier just to tell them to typemake
(which also builds our server-side) rather than teach them how to use theng
tools and to ask them to have a watch process running in the background.The text was updated successfully, but these errors were encountered: