πβ¨ Enable lazy-build and watch modes for minified code #27471
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background:
With #27426 and #27447, the pre-closure babel transforms run by
gulp dist
were refactored from all-at-once to on-demand. This paves the way for lazy-build and watch modes for minified code.PR Highlights:
βwatch
gulp dist
) to <1m (gulp --compiled
)Newly added commands:
# Minified watch build gulp dist --watch
# Minified watch build for just the core runtime gulp dist --watch --core_runtime_only
# Minified watch build for some extensions gulp dist --watch --extensions=amp-foo,amp-bar
# Minified watch build for extensions used by an example file gulp dist --watch --extensions_from=examples/foo.amp.html
# Minified lazy + watch build gulp --compiled
# Minified lazy + watch build (pre-build some extensions) gulp --compiled --extensions=amp-foo,amp-bar
# Minified lazy + watch build (pre-build extensions used by an example file) gulp --compiled --extensions_from=examples/foo.amp.html
Examples:
gulp --compiled
gulp dist --watch --core_runtime_only
Follow up to #27426 and #27447