tailwindcss-rails 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1532ef073e756d1efdd16e8bcf45b21cd5ced36b682d30056eb24d5e0c879120
4
- data.tar.gz: ea2639495f9f7401014e177dca557c35b85220a680237ca4259396f800c632d6
3
+ metadata.gz: 99416d349fce684c991f63dc815098ceaa1db8c8b39b8e96433dddc4c24a8272
4
+ data.tar.gz: 21e605c05506a77ac87d499d5c20d4e2beee1ff7782de1cc0ffec97927904452
5
5
  SHA512:
6
- metadata.gz: c2cb745a3b127ccb00c8d1bcbd7d35b0a08ad51c7778c8c4446e9f6f25d47bd073fd4b95369c407d485ebbcaf216dfe1daaa8bc1710c4a24936c33d35faba204
7
- data.tar.gz: e8427a6b9c56ed3e3577d2d871d0fa7ac82bb4eaf0306bb9c067597fd239edb80b4afbe079781419fecbd9f87b2804026b61b9c769b3c14697c5983e50075a50
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
 
@@ -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].remove("\\")
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)
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailwindcss-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson