jekyll-jsminify 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-jsminify.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcd4d245b467844fc511539a60558a28b2214690
|
4
|
+
data.tar.gz: 5273c738d274fd6c46089ae4449528e0bff05f3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81433bad7c8105615a4a5c8daa96521f9f76150bcf64a6a4ccbe59b99f5ac40e4414e4d2b0bb35ed832fd35fbef24c0daefdbe6d0d29236c7a4941c903ec0e89
|
7
|
+
data.tar.gz: 69ef2b73f36bd270da88f7011ffb6234da719f2ce80f6af0dcadc5cee1a85c5d9e442f81cca69eb7e6590d1a8131f4338507b0a0ea00efdc90c15c1f1b7294d2
|
data/lib/jekyll-jsminify.rb
CHANGED
@@ -50,7 +50,13 @@ module Jekyll
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def convert(content)
|
53
|
-
|
53
|
+
# can't figure out why sometimes, CS comes down here, and sometimes,
|
54
|
+
# proper JS. Also can't figure out how to scope to just SyntaxError.
|
55
|
+
begin
|
56
|
+
Uglifier.new(@config['jsminify']).compile super
|
57
|
+
rescue
|
58
|
+
Uglifier.new(@config['jsminify']).compile content
|
59
|
+
end
|
54
60
|
end
|
55
61
|
end
|
56
62
|
end
|