Skip to content

build: minify html before inlining resources #4877

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

Merged
merged 2 commits into from
May 30, 2017

Conversation

devversion
Copy link
Member

  • Now minifies the HTML files before inlining the resources. This drops unnecessary whitespace due to previous line breaks and developers can easily test with Material components.

Note: The minifying could be done in another utility file as well but all our utility files should be done without gulp (because we want to have a standalone packaging tool). Only the build-tasks-gulp should contain gulp-related stuff.

Fixes #1596

@devversion devversion requested a review from jelbourn May 30, 2017 14:41
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 30, 2017
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one minor comment

Add the "merge-ready" label when you're done

@@ -26,7 +27,10 @@ export function createPackageBuildTasks(packageName: string, requiredPackages: s
const esmMainFile = join(packageOut, 'index.js');

// Glob that matches all assets that should be copied to the package.
const assetsGlob = join(packageRoot, '**/*.+(html|scss|css)');
const assetsGlob = join(packageRoot, '**/*.+(scss|css)');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this doesn't include HTML anymore, it can just be stylesGlob

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep good idea.

@devversion devversion added the action: merge The PR is ready for merge by the caretaker label May 30, 2017
* Now minifies the HTML files before inlining the resources. This drops unnecessary whitespace due to previous line breaks and developers can easily test with Material components.

Fixes angular#1596
@devversion devversion force-pushed the build/release-output-whitespace branch from 75dbaf9 to 5aa32e1 Compare May 30, 2017 18:28
@mmalerba mmalerba merged commit 508b141 into angular:master May 30, 2017
@devversion devversion deleted the build/release-output-whitespace branch May 30, 2017 18:45
@angular-automatic-lock-bot
Copy link

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 Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove trailing whitespace in inlined templates
4 participants