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 |