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

Unified Diff: pkg/polymer/lib/src/transform/script_compactor.dart

Issue 23445009: Prune the old deploy code. This CL does a few changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months 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
Index: pkg/polymer/lib/src/transform/script_compactor.dart
diff --git a/pkg/polymer/lib/src/transform/script_compactor.dart b/pkg/polymer/lib/src/transform/script_compactor.dart
index 9c2550aed4cbecb75cbb565d08f3e6457bd1d28a..b399e9e08607124f5fedc16fb5f1046661a2a659 100644
--- a/pkg/polymer/lib/src/transform/script_compactor.dart
+++ b/pkg/polymer/lib/src/transform/script_compactor.dart
@@ -28,8 +28,8 @@ import 'common.dart';
* elements annotated with `@CustomTag`.
*/
class ScriptCompactor extends Transformer {
- Future<bool> isPrimary(Asset input) =>
- new Future.value(input.id.extension == ".html");
+ /** Only run this transformer on .html files. */
+ final String allowedExtensions = ".html";
Future apply(Transform transform) {
var id = transform.primaryId;

Powered by Google App Engine
This is Rietveld 408576698