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

Unified Diff: Source/devtools/scripts/concatenate_js_files.py

Issue 252633006: Compact JS resource better by using rjsmin. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
Index: Source/devtools/scripts/concatenate_js_files.py
diff --git a/Source/devtools/scripts/concatenate_js_files.py b/Source/devtools/scripts/concatenate_js_files.py
old mode 100644
new mode 100755
index 0b9eb71f48ebe0c066bea202fb929866f473ce5b..2be70cde67f67ca63afa02c1cf42d392c5fd0d1c
--- a/Source/devtools/scripts/concatenate_js_files.py
+++ b/Source/devtools/scripts/concatenate_js_files.py
@@ -37,10 +37,18 @@ from __future__ import with_statement
from HTMLParser import HTMLParser
from cStringIO import StringIO
-import rjsmin
import os.path
import sys
+rjsmin_path = os.path.abspath(os.path.join(
+ os.path.dirname(__file__),
+ "..",
+ "..",
+ "build",
+ "scripts"))
+sys.path.append(rjsmin_path)
+import rjsmin
+
class OrderedJSFilesExtractor(HTMLParser):

Powered by Google App Engine
This is Rietveld 408576698