Skip to content
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

include additional options in pub build? #15930

Closed
sigmundch opened this issue Jan 6, 2014 · 11 comments
Closed

include additional options in pub build? #15930

sigmundch opened this issue Jan 6, 2014 · 11 comments
Labels

Comments

@sigmundch
Copy link
Member

some options we've heard requested from users:
(a) allow to choose whether or not to include certain polyfills (e.g. if you intend to run only on a browser that has native support for shadow dom, for example)
(b) merge files together (e.g. single deploy target)

I'm not sure yet that the right solution is to make polymer transformers configurable this way. An alternative I like is to provide a separate package that optimizes your .html for deployment. For instance:
 - removes dart.js
 - it's configurable to remove stuff you don't need
 - combines .js files together if possible (addresses (b))
 - it can also inline images and .css

This might be related to issue #14537 as well

@jacob314
Copy link
Member

jacob314 commented Jan 6, 2014

cc @johnmccutchan.

@sigmundch
Copy link
Member Author

FWIW - a temporary workaround for this is to define your own transformer that does this and add it to the transformer section of your pubspec.yaml file so it gets invoked after pub-build.

@sigmundch
Copy link
Member Author

Added Library-Polymer label.

@jmesserly
Copy link

Removed Area-Polymer label.
Added area-pkg, Pkg-Polymer labels.

@jmesserly
Copy link

Removed Library-Polymer label.

@sigmundch
Copy link
Member Author

Added this to the Later milestone.

@sigmundch
Copy link
Member Author

Added Polymer-P-2 label.

@sigmundch
Copy link
Member Author

Removed this from the Later milestone.

@sigmundch
Copy link
Member Author

Removed Polymer-P-2 label.
Added Polymer-Milestone-Later label.

@sigmundch
Copy link
Member Author

Removed Polymer-Milestone-Later label.
Added PolymerMilestone-Later label.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/polymer-dart#105.

@DartBot DartBot closed this as completed Jun 5, 2015
@kevmoo kevmoo removed the triaged label Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants