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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 805cfbe79d29e03c8f270338b18eb47b286176cb6cc8b17b60e38caba023c61c
4
- data.tar.gz: b47946af616f7cb4e8f677954cd9a48465e1b760167d011b03d0d7e61e399763
3
+ metadata.gz: 377ed754fc6c3404aa6b2a1c6e15d1aa3140b650dd700e2c28a8103b0c776ce2
4
+ data.tar.gz: f95059ed24331abcd188bf1e89cd1721481aa780b42f2b094f8e337bb6a3e6f2
5
5
  SHA512:
6
- metadata.gz: 141d451a32056a183fb2a4768c738513d0cbbf2a4976f876b183a4cdbfd442114ed9d8f62a2e08563c5a31aab8b283090ecd81f0aae800ba92cc137a437d0d4e
7
- data.tar.gz: 63358fcac6e86facb2daa68f9800ab062fbf250c050cdc1ba0abba6ab73daf0c1ae737d3db6c6c3a2bd4c3442c9b89d1bfaa8fd1fbf30f293fae1b8a562f6a87
6
+ metadata.gz: 91799eff0f9fb6b56dd6dd729cd9b32c7ebfcc77391d9fae235b3cbfa21e474b30bae19942a08c532bec2cc78746819392c76cf5f3b7648cd5514709304b8cb3
7
+ data.tar.gz: 1c0b598257cd37a7faba0c03ad0800cbe5997afc2e07e8bd85ec6eb6743489a268b00220fc08c77ec42a6256e2e4f0cbbd035e2a28b2e34a427e4870f7026310
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+
3
+ ## Master
4
+
5
+ ## 0.2.0
6
+
7
+ - Respects Jekyll's `destination` configuration
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-purgecss (0.1.1)
4
+ jekyll-purgecss (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Purgecss
5
- VERSION = "0.1.1"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
@@ -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 _site/#{site.config.fetch("css_dir", "css")}/"
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.1.1
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-02-01 00:00:00.000000000 Z
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