tailwindcss-rails 0.4.0 → 0.4.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 +0 -2
- data/lib/install/tailwindcss.rb +3 -0
- 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: 365d102efe121a55ce232e1efe7fa2716d2d81541b68143cfc539c469361cef9
|
4
|
+
data.tar.gz: '068ab0d2841cac92fe81665b8840198681ca39920fbcf09a12ab7b9f4e124cfa'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0181fbba95ea7a664ade6c2cedd8f3c8d1a96627f76a87eb300830807a2232a2157ed3bd7931068b400b7a45bb874b67361d588226af46197036c770634ae206'
|
7
|
+
data.tar.gz: 80e9ff6b2e3e4ef73c7ea50d4d3c6aff9914dcfc3ca092dae1d884ee5cb3e6a55f8f51ab0b0aedfb131203d7cf59b73fe84850cf8413ccf9a94f428512b3d7cc
|
data/README.md
CHANGED
@@ -18,8 +18,6 @@ The last step 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/scaffolds.scss` that Rails adds after running a scaffold command, if you had run this generator before installing Tailwind CSS for Rails. This stylesheet will interfere with Tailwind's reset of base styles. This gem will turn off stylesheet generation for all future scaffold runs.
|
22
|
-
|
23
21
|
|
24
22
|
## Purging in production
|
25
23
|
|
data/lib/install/tailwindcss.rb
CHANGED
@@ -8,5 +8,8 @@ else
|
|
8
8
|
say %( Add <%= stylesheet_link_tag "inter-font" %> and <%= stylesheet_link_tag "tailwind" %> within the <head> tag in your custom layout.)
|
9
9
|
end
|
10
10
|
|
11
|
+
say "Removing scaffold styles"
|
12
|
+
remove_file Rails.root.join("app/assets/stylesheets/scaffolds.scss")
|
13
|
+
|
11
14
|
say "Turn on purging of unused css classes in production"
|
12
15
|
gsub_file Rails.root.join("config/environments/production.rb"), /^\s+#?\s+config.assets.css_compressor =.*$/, %( config.assets.css_compressor = :purger)
|
data/lib/tailwindcss/version.rb
CHANGED