jekyll-postcss 0.3.2 → 0.4.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/.gitignore +1 -1
- data/CHANGELOG.md +19 -0
- data/README.md +14 -1
- data/lib/jekyll-postcss/version.rb +1 -1
- data/lib/jekyll/converters/postcss.rb +4 -4
- 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: b814559fcadf25906a68dbb7e40926a72fa75aa92e293e3d39454dd9bcf784cd
|
4
|
+
data.tar.gz: 779270e4ff58d9b35a4c46dbfbab8be77998edd9c2307208a7654b27ab2841f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65fb6ab42952f39ae49851e0600539fcac18ad4505fb817db67690c518984f73e09672d6dd6a00a2d989c05a054d13c15d2a88a0fc4fa0043fb654d48b3d43c4
|
7
|
+
data.tar.gz: 72ff0a8ad7f284634faafd8adf4b33baf77532af7ea680ce0e05a89c1107d9e64643934477917d63106dfa0abb42b75f985cb6a6de60acb7fc3ef091384a9571
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.4.0
|
4
|
+
|
5
|
+
### Process SCSS/Sass files
|
6
|
+
|
7
|
+
The plugin now processes scss and sass files in addition to css files. This requires using the [postcss-scss](https://github.com/postcss/postcss-scss) syntax parser in your postcss.config.js
|
8
|
+
|
9
|
+
```javascript
|
10
|
+
module.exports = {
|
11
|
+
parser: 'postcss-scss',
|
12
|
+
plugins: [
|
13
|
+
// ...
|
14
|
+
]
|
15
|
+
};
|
16
|
+
|
17
|
+
jekyll-postcss has a higher priority, so it will hand off the the postcss output to jekyll-sass-converter to finish off compiling.
|
18
|
+
|
19
|
+
```
|
20
|
+
|
3
21
|
## 0.3.2
|
4
22
|
|
5
23
|
- Output valid CSS when running outside the development environment
|
@@ -12,6 +30,7 @@
|
|
12
30
|
|
13
31
|
- Update rake
|
14
32
|
- Performance improvement
|
33
|
+
- [Breaking?]: Uses `postcss` instead of `postcss-cli`. I think that it will continue to work without changing your dependencies since `postcss-cli` uses `postcss` as a dependency.
|
15
34
|
|
16
35
|
## 0.2.2
|
17
36
|
|
data/README.md
CHANGED
@@ -41,7 +41,20 @@ module.exports = {
|
|
41
41
|
};
|
42
42
|
```
|
43
43
|
|
44
|
-
All
|
44
|
+
All CSS and SCSS/Sass files will now be processed by PostCSS.
|
45
|
+
|
46
|
+
### SCSS/Sass
|
47
|
+
|
48
|
+
If using SCSS/Sass, you must have [postcss-scss](https://github.com/postcss/postcss-scss) installed and configured in your `postcss.config.js`
|
49
|
+
|
50
|
+
```javascript
|
51
|
+
module.exports = {
|
52
|
+
parser: 'postcss-scss',
|
53
|
+
plugins: [
|
54
|
+
// ...
|
55
|
+
]
|
56
|
+
};
|
57
|
+
```
|
45
58
|
|
46
59
|
### Notes
|
47
60
|
|
@@ -7,7 +7,7 @@ module Jekyll
|
|
7
7
|
module Converters
|
8
8
|
class PostCss < Converter
|
9
9
|
safe true
|
10
|
-
priority :
|
10
|
+
priority :normal
|
11
11
|
|
12
12
|
def initialize(config = {})
|
13
13
|
super
|
@@ -19,11 +19,11 @@ module Jekyll
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def matches(ext)
|
22
|
-
|
22
|
+
[".css", ".scss", ".sass"].include?(ext.downcase)
|
23
23
|
end
|
24
24
|
|
25
|
-
def output_ext(
|
26
|
-
|
25
|
+
def output_ext(ext)
|
26
|
+
ext
|
27
27
|
end
|
28
28
|
|
29
29
|
def convert(content)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-postcss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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: 2020-05-
|
11
|
+
date: 2020-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|