jekyll-purgecss 0.1.1 → 0.2.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -1
- data/lib/jekyll-purgecss/version.rb +1 -1
- data/lib/jekyll/hooks/purgecss.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 377ed754fc6c3404aa6b2a1c6e15d1aa3140b650dd700e2c28a8103b0c776ce2
|
|
4
|
+
data.tar.gz: f95059ed24331abcd188bf1e89cd1721481aa780b42f2b094f8e337bb6a3e6f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91799eff0f9fb6b56dd6dd729cd9b32c7ebfcc77391d9fae235b3cbfa21e474b30bae19942a08c532bec2cc78746819392c76cf5f3b7648cd5514709304b8cb3
|
|
7
|
+
data.tar.gz: 1c0b598257cd37a7faba0c03ad0800cbe5997afc2e07e8bd85ec6eb6743489a268b00220fc08c77ec42a6256e2e4f0cbbd035e2a28b2e34a427e4870f7026310
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -24,6 +24,8 @@ plugins:
|
|
|
24
24
|
css_dir: "<css_dir>" # defaults to "css"
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
jekyll-purgecss only runs in production, so make sure that `JEKYLL_ENV=production` on the server where you build your site.
|
|
28
|
+
|
|
27
29
|
## Usage
|
|
28
30
|
|
|
29
31
|
Make sure you have [purgecss](https://www.purgecss.com/#cli) installed and has its binary located at `./node_modules/.bin/purgecss`.
|
|
@@ -33,7 +35,7 @@ Add your Purgecss configuration to a `purgecss.config.js` file in the root of yo
|
|
|
33
35
|
```javascript
|
|
34
36
|
// purgecss.config.js
|
|
35
37
|
|
|
36
|
-
module.exports {
|
|
38
|
+
module.exports = {
|
|
37
39
|
// These are the files that Purgecss will search through
|
|
38
40
|
content: ["./_site/**/*.html"],
|
|
39
41
|
|
|
@@ -7,7 +7,7 @@ Jekyll::Hooks.register(:site, :post_write) do |site|
|
|
|
7
7
|
raise PurgecssRuntimeError unless system(
|
|
8
8
|
"./node_modules/.bin/purgecss " \
|
|
9
9
|
"--config ./purgecss.config.js " \
|
|
10
|
-
"--out
|
|
10
|
+
"--out #{site.config.fetch("destination")}/#{site.config.fetch("css_dir", "css")}/"
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-purgecss
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mitchell Hanberg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-08-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -92,6 +92,7 @@ files:
|
|
|
92
92
|
- ".rubocop.yml"
|
|
93
93
|
- ".tool-versions"
|
|
94
94
|
- ".travis.yml"
|
|
95
|
+
- CHANGELOG.md
|
|
95
96
|
- CODE_OF_CONDUCT.md
|
|
96
97
|
- Gemfile
|
|
97
98
|
- Gemfile.lock
|