Skip to content

fix(@angular-devkit/build-angular): fully optimize script bundles with bundle downleveling#15566

Merged
kyliau merged 1 commit intoangular:masterfrom
clydin:minify-scripts
Sep 10, 2019
Merged

fix(@angular-devkit/build-angular): fully optimize script bundles with bundle downleveling#15566
kyliau merged 1 commit intoangular:masterfrom
clydin:minify-scripts

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Sep 10, 2019

Script bundles were not being subject to the terser mangle optimizations when using bundle down leveling.
This change also allows terser to perform ECMA 6 level compress and output optimizations on the actual application bundles (non-script bundles) which can provide for further size improvements. Also limits the parsing for optimizations of the script bundles to one step.

Fixes #15489
Supersedes #15507

@clydin clydin added the target: patch This PR is targeted for the next patch release label Sep 10, 2019
@kyliau kyliau added target: major This PR is targeted for the next major release and removed target: patch This PR is targeted for the next patch release labels Sep 10, 2019
@kyliau
Copy link
Copy Markdown
Contributor

kyliau commented Sep 10, 2019

@clydin could you please resolve the conflict? this PR has been merged to patch.

…h bundle downleveling

This also allows terser to perform ECMA 6 level compress optimizations on the actual application bundles (non-script bundles) which can provide for further size improvements.

Fixes angular#15507
@clydin
Copy link
Copy Markdown
Member Author

clydin commented Sep 10, 2019

Resolved.

@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Oct 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Angular CLI 8.3.0: scripts.js not minified for prod build

4 participants