jekyll-tailwindcss 0.6.1 → 0.6.2
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/README.md +1 -0
- data/lib/jekyll/converters/tailwindcss.rb +7 -1
- data/lib/jekyll-tailwindcss/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: 3e1e29ca0abd9c5830429366d0552d685446274bda03e353ee6829e2bb946296
|
4
|
+
data.tar.gz: 1cd3dd8fd880efdb33118309492697061c624e046abd72cc5540e98db9bee90c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58bfbab5c38628acc762375d3d6f8211ce6cb302b6803bbff3428f345efafe1e29f4087739dfc05fb855e65149c749c18b8206d3677015837fb2c159207cea5b
|
7
|
+
data.tar.gz: 67c4d4efafa86cc2972cc1db7e357cfdd65e14583ed5e27138a692e94a8f8af198555184e717db19e19046cae215f2680f04358e2182a64a6f6d1df75eebbf8a
|
data/README.md
CHANGED
@@ -202,6 +202,7 @@ end
|
|
202
202
|
- bump the version
|
203
203
|
- [ ] update `lib/jekyll-tailwindcss/version.rb`
|
204
204
|
- [ ] update `CHANGELOG.md`
|
205
|
+
- [ ] bundle install to pick up the new version
|
205
206
|
- [ ] commit and create a git tag ( example `git tag -a v0.3.1 -m "Release 0.3.1"` )
|
206
207
|
- push
|
207
208
|
- [ ] `bundle exec rake build`
|
@@ -17,7 +17,7 @@ module Jekyll
|
|
17
17
|
|
18
18
|
def convert(content)
|
19
19
|
return content unless /@tailwind|@import ['"]tailwindcss/i.match?(content)
|
20
|
-
if
|
20
|
+
if config_path.nil? && tailwind_v3_syntax?(content)
|
21
21
|
Jekyll.logger.error "Jekyll Tailwind:", "to use tailwind v3 you need to include a config path in _config.yml"
|
22
22
|
return content
|
23
23
|
end
|
@@ -46,6 +46,12 @@ module Jekyll
|
|
46
46
|
|
47
47
|
private
|
48
48
|
|
49
|
+
def tailwind_v3_syntax?(content)
|
50
|
+
return false if content.include?("@plugin")
|
51
|
+
|
52
|
+
content.include?("@tailwind")
|
53
|
+
end
|
54
|
+
|
49
55
|
def tailwindcss_env_options
|
50
56
|
# Without this ENV you'll get a warning about `Browserslist: caniuse-lite is outdated`
|
51
57
|
# Since we're using the CLI, we can't update the data, so we ignore it.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-tailwindcss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Vormwald
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-03 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: tailwindcss-ruby
|