Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Unified Diff: pkg/polymer/lib/src/build/common.dart

Issue 61193002: Add a build filter (only necessary HTML files are emitted) and logic to use .min.js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/lib/src/build/build_filter.dart ('k') | pkg/polymer/lib/src/build/polyfill_injector.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/common.dart
diff --git a/pkg/polymer/lib/src/build/common.dart b/pkg/polymer/lib/src/build/common.dart
index 672456111f9382562b05b75388487aa339dc2bc5..1bb43797b6ece80ce5b19f6acdf69193809a4209 100644
--- a/pkg/polymer/lib/src/build/common.dart
+++ b/pkg/polymer/lib/src/build/common.dart
@@ -62,8 +62,14 @@ class TransformOptions {
*/
final bool directlyIncludeJS;
+ /**
+ * Run transformers to create a releasable app. For example, include the
+ * minified versions of the polyfills rather than the debug versions.
+ */
+ final bool releaseMode;
+
TransformOptions({entryPoints, this.contentSecurityPolicy: false,
- this.directlyIncludeJS: true})
+ this.directlyIncludeJS: true, this.releaseMode: true})
: entryPoints = entryPoints == null ? null
: entryPoints.map(_systemToAssetPath).toList();
« no previous file with comments | « pkg/polymer/lib/src/build/build_filter.dart ('k') | pkg/polymer/lib/src/build/polyfill_injector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698