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

Unified Diff: third_party/py_vulcanize/py_vulcanize/generate.py

Issue 1417883005: Enable vulcanizing perf_insights mapper Base URL: https://github.com/catapult-project/catapult@master
Patch Set: Undo changes to vinn Created 5 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 | « perf_insights/perf_insights/perf_insights_full_config.html ('k') | tracing/tracing/base/base.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « perf_insights/perf_insights/perf_insights_full_config.html ('k') | tracing/tracing/base/base.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698