jekyll-minify-html-rs 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/jekyll-minify-html-rs.rb +16 -0
- metadata +58 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 5a98046d00adc432829f10bef840e3cb99ccfb3ffab1d1d86f9f871db62319fc
|
|
4
|
+
data.tar.gz: b50d40bbe7e0e3ff66255c6e3ddb78c3d996c5fce591adccd2ad85ddda9c54a1
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: b69175fa5d4eb4f621e725e230f4415445393365193de9a45d312b695347c487c9a7f33e6d18bf9b63edb4eb2c64e52e297ad95e225f455f4388bef348fb6e8b
|
|
7
|
+
data.tar.gz: 52b07f633e0f53bfb5190409913a005e82a895194504bdce74699069d64b00c8c31003b161b328dfce88dc32e35818410a72428525c9c584a8c16094de6e11bb
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require "minify_html"
|
|
2
|
+
|
|
3
|
+
Jekyll::Hooks.register [:pages, :documents], :post_render do |doc|
|
|
4
|
+
if doc.output_ext != ".html"
|
|
5
|
+
next
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
doc.output = minify_html(
|
|
9
|
+
doc.output,
|
|
10
|
+
{
|
|
11
|
+
:keep_ssi_comments => false,
|
|
12
|
+
:minify_css => true,
|
|
13
|
+
:minify_js => true
|
|
14
|
+
}
|
|
15
|
+
)
|
|
16
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: jekyll-minify-html-rs
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- gandaro
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2025-10-28 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: minify_html
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 0.18.1
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 0.18.1
|
|
27
|
+
description: A Jekyll plugin that uses the minify-html Rust crate to minify HTML files.
|
|
28
|
+
email:
|
|
29
|
+
executables: []
|
|
30
|
+
extensions: []
|
|
31
|
+
extra_rdoc_files: []
|
|
32
|
+
files:
|
|
33
|
+
- lib/jekyll-minify-html-rs.rb
|
|
34
|
+
homepage:
|
|
35
|
+
licenses:
|
|
36
|
+
- MIT
|
|
37
|
+
metadata:
|
|
38
|
+
source_code_uri: https://github.com/gandaro/jekyll-minify-html-rs
|
|
39
|
+
post_install_message:
|
|
40
|
+
rdoc_options: []
|
|
41
|
+
require_paths:
|
|
42
|
+
- lib
|
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
|
+
requirements:
|
|
50
|
+
- - ">="
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: '0'
|
|
53
|
+
requirements: []
|
|
54
|
+
rubygems_version: 3.0.3.1
|
|
55
|
+
signing_key:
|
|
56
|
+
specification_version: 4
|
|
57
|
+
summary: HTML minifier for Jekyll
|
|
58
|
+
test_files: []
|