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

Unified Diff: tools/grit/grit/node/structure.py

Issue 2014793002: [Grit] Allow preprocess-only "inlining" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes. Created 4 years, 7 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
« no previous file with comments | « tools/grit/grit/node/include.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/node/structure.py
diff --git a/tools/grit/grit/node/structure.py b/tools/grit/grit/node/structure.py
index 331a646cb5217dd20a879d83e9c5661c3e9a5369..07fe6492f118a182bb40cfec238347830d7582f9 100755
--- a/tools/grit/grit/node/structure.py
+++ b/tools/grit/grit/node/structure.py
@@ -138,6 +138,9 @@ class StructureNode(base.Node):
# output of platform.system().
'run_command_on_platforms' : '',
'allowexternalscript': 'false',
+ # preprocess takes the same code path as flattenhtml, but it
+ # disables any processing/inlining outside of <if> and <include>.
+ 'preprocess': 'false',
'flattenhtml': 'false',
'fallback_to_low_resolution': 'default',
# TODO(joi) this is a hack - should output all generated files
« no previous file with comments | « tools/grit/grit/node/include.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698