Permalink
Browse files

don't bother minifying files called something like foo-min-1.0.js

  • Loading branch information...
1 parent c2feb1d commit 3f1ffd4fe91134a8c97d9806639d79ad4154b179 @peterbe committed Jun 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tornado_utils/tornado_static.py
@@ -26,7 +26,7 @@
import cssmin
except ImportError:
cssmin = None
-
+
from .utils import mkdir
################################################################################
@@ -251,7 +251,7 @@ def replacer(match):
def _already_optimized_filename(self, file_path):
file_name = os.path.basename(file_path)
- for part in ('.min.', '.minified.', '.pack.', '-jsmin.'):
+ for part in ('-min-', '-min.', '.min.', '.minified.', '.pack.', '-jsmin.'):
if part in file_name:
return True
return False

0 comments on commit 3f1ffd4

Please sign in to comment.