jekyll-js-converter 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/converters/js.rb +4 -4
- data/lib/jekyll-js-converter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a7d061dea9f28995d3038724a26ed29c6c6cdae0656d105ce6a36c68fde5b52
|
4
|
+
data.tar.gz: 2f76e7e429cc3dcc1bc31e055f8a3112f846c8929b74e34ed5cabc74a0cd900b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f50bfb3976bfdd1fb284586dd337694794294861a8fae62c357161c7ba90b7355696e2c9697fe969a99b65deda085b5db685756bcd7af6d6464d4a8334fa8e1
|
7
|
+
data.tar.gz: 3502b12bcd960b6dbc0fa090e303c5cabc695700d171740148179051bcd5cd2002c59f9971e703d020532e36d98105e0e3acd6a0f23e4b7478e3b25623b706c7
|
data/lib/jekyll/converters/js.rb
CHANGED
@@ -71,7 +71,7 @@ module Jekyll
|
|
71
71
|
if generate_source_map?
|
72
72
|
config = Jekyll::Utils.symbolize_hash_keys(
|
73
73
|
Jekyll::Utils.deep_merge_hashes(
|
74
|
-
{ :
|
74
|
+
{ :uglifier => {
|
75
75
|
:source_map => {
|
76
76
|
:map_url => @source_map_page.name,
|
77
77
|
:sources_content => true,
|
@@ -83,7 +83,7 @@ module Jekyll
|
|
83
83
|
)
|
84
84
|
)
|
85
85
|
|
86
|
-
uglified, source_map = Uglifier.new(config[:
|
86
|
+
uglified, source_map = Uglifier.new(config[:uglifier]).compile_with_map(insert_imports(content))
|
87
87
|
|
88
88
|
@source_map_page.source_map(source_map)
|
89
89
|
site.pages << @source_map_page
|
@@ -92,12 +92,12 @@ module Jekyll
|
|
92
92
|
else
|
93
93
|
config = Jekyll::Utils.symbolize_hash_keys(
|
94
94
|
Jekyll::Utils.deep_merge_hashes(
|
95
|
-
{ :
|
95
|
+
{ :uglifier => {} },
|
96
96
|
javascript_config
|
97
97
|
)
|
98
98
|
)
|
99
99
|
|
100
|
-
Uglifier.new(config[:
|
100
|
+
Uglifier.new(config[:uglifier]).compile(insert_imports(content))
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-js-converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Susco
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uglifier
|