tailwindcss-rails 0.2.0 → 0.2.1
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/tailwindcss/purger.rb +4 -1
- data/lib/tailwindcss/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99416d349fce684c991f63dc815098ceaa1db8c8b39b8e96433dddc4c24a8272
|
4
|
+
data.tar.gz: 21e605c05506a77ac87d499d5c20d4e2beee1ff7782de1cc0ffec97927904452
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f246a6972ccc630e858692dd4b93b57f57dff0d0d797c9955b058b8f107cbd0a73bde1498145187f7ffe366f14da93be51142a148b30ed4a3d4cd953c9654f3
|
7
|
+
data.tar.gz: 06c58f56cd53d85309ccc1ef2d080c217d3a56a20af9b6bcaad761bc8dc352ec95765a223670c724f7f9d38ec1358e0e05dc43f12113f06fac269cdf7a9adac1
|
data/README.md
CHANGED
@@ -18,6 +18,7 @@ The last option adds the purger compressor to `config/environments/production.rb
|
|
18
18
|
|
19
19
|
You can do these things yourself, if you've changed the default setup.
|
20
20
|
|
21
|
+
Note: You should ensure to delete `app/assets/stylesheets/scaffold.scss` that Rails adds after running a scaffold command. This stylesheet will interfere with Tailwind's reset of base styles.
|
21
22
|
|
22
23
|
## Purging in production
|
23
24
|
|
data/lib/tailwindcss/purger.rb
CHANGED
@@ -52,7 +52,10 @@ class Tailwindcss::Purger
|
|
52
52
|
|
53
53
|
private
|
54
54
|
def class_name_in(line)
|
55
|
-
CLASS_NAME_PATTERN.match(line)[1]
|
55
|
+
CLASS_NAME_PATTERN.match(line)[1]
|
56
|
+
.remove("\\")
|
57
|
+
.remove(/:(focus|hover)(-within)?/)
|
58
|
+
.remove("::placeholder").remove("::-moz-placeholder").remove(":-ms-input-placeholder")
|
56
59
|
end
|
57
60
|
|
58
61
|
def separated_without_empty_lines(output)
|
data/lib/tailwindcss/version.rb
CHANGED