Index: third_party/py_vulcanize/py_vulcanize/generate.py |
diff --git a/third_party/py_vulcanize/py_vulcanize/generate.py b/third_party/py_vulcanize/py_vulcanize/generate.py |
index c3e08cbc2b0e733d862ffea9d82dedb46da9713b..622e3592e80b0e5b73568aeb97b36caecd28a2f6 100644 |
--- a/third_party/py_vulcanize/py_vulcanize/generate.py |
+++ b/third_party/py_vulcanize/py_vulcanize/generate.py |
@@ -95,7 +95,8 @@ def GenerateJSToFile(f, |
use_include_tags_for_scripts=False, |
dir_for_include_tag_root=None, |
minify=False, |
- report_sizes=False): |
+ report_sizes=False, |
+ load_polymer_script=True): |
_AssertIsUTF8(f) |
if use_include_tags_for_scripts and dir_for_include_tag_root is None: |
raise Exception('Must provide dir_for_include_tag_root') |
@@ -105,8 +106,9 @@ def GenerateJSToFile(f, |
loader = load_sequence[0].loader |
- polymer_script = loader.LoadRawScript('components/polymer/polymer.min.js') |
- f.write(polymer_script.contents) |
+ if load_polymer_script: |
+ polymer_script = loader.LoadRawScript('components/polymer/polymer.min.js') |
+ f.write(polymer_script.contents) |
if not minify: |
flatten_to_file = f |