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

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

Issue 2337253002: Remove minification spam (Closed)
Patch Set: Respond to comments Created 4 years, 3 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/format/minifier.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/include.py
diff --git a/tools/grit/grit/node/include.py b/tools/grit/grit/node/include.py
index 74a9a41f273b1eff55ea72f01b92bdafcc689b31..9383adec576eaa7b170ec4c5584a8d923bfbc8d6 100755
--- a/tools/grit/grit/node/include.py
+++ b/tools/grit/grit/node/include.py
@@ -96,7 +96,7 @@ class IncludeNode(base.Node):
data = util.ReadFile(filename, util.BINARY)
# Note that the minifier will only do anything if a minifier command
# has been set in the command line.
- data = minifier.Minify(data, os.path.splitext(filename)[1])
+ data = minifier.Minify(data, filename)
if 'compress' in self.attrs and self.attrs['compress'] == 'gzip':
# We only use rsyncable compression on Linux.
# We exclude ChromeOS since ChromeOS bots are Linux based but do not have
« no previous file with comments | « tools/grit/grit/format/minifier.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698