tailwindcss-rails 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/install/tailwindcss_with_webpacker.rb +1 -1
- data/lib/tailwindcss/engine.rb +4 -0
- data/lib/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: 02103a11966729f1d12ce639508812723041e0b31eb16d1975eb7a8b0e51d127
|
4
|
+
data.tar.gz: 6efcf452cfa585413a954607fa4558485fa8014b80de52bd8a3e1ffbb30a50a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cde59ad3bd2cdbf6965e06aff1cc87523ea0e777944623e5f1dd3d9842b74f4171659f1f5436220f7fe2f5ac3dee412fb70d5f3aeb19ab75d52386e334b3ea8
|
7
|
+
data.tar.gz: 98cae3c85094323de192bcb1f8efd345c59b9d1357c0281fb3b102bb86a1bb2bd10ca7cac17f5f3a3562507b0f80316a7264277d4f4ce49a8968ec335940910e
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ When run on an app using the just the asset pipeline, the last step adds the pur
|
|
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
|
+
Note: You should ensure to delete `app/assets/stylesheets/scaffold.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
22
|
|
23
23
|
When run on an app using Webpacker, the last step adds the npm dependencies for Tailwind CSS, configures postCSS, and generates a app/javascript/stylesheets/application.scss file as the default for using Tailwind.
|
24
24
|
|
@@ -13,7 +13,7 @@ insert_into_file "#{Webpacker.config.source_entry_path}/application.js", "\nrequ
|
|
13
13
|
say "Adding minimal configuration for Tailwind CSS to work properly"
|
14
14
|
directory Pathname.new(__dir__).join("stylesheets"), Webpacker.config.source_path.join("stylesheets")
|
15
15
|
|
16
|
-
insert_into_file "postcss.config.js", "require('tailwindcss'),\n\t", before: "require('postcss-import')"
|
16
|
+
insert_into_file "postcss.config.js", "require('tailwindcss'),\n\t", before: " require('postcss-import')"
|
17
17
|
|
18
18
|
if APPLICATION_LAYOUT_PATH.exist?
|
19
19
|
say "Add Tailwindcss include tags in application layout"
|
data/lib/tailwindcss/engine.rb
CHANGED
@@ -10,6 +10,10 @@ module Tailwindcss
|
|
10
10
|
Rails.application.config.assets.precompile += %w( tailwind.css inter-font.css )
|
11
11
|
end
|
12
12
|
|
13
|
+
initializer "tailwindcss.disable_generator_stylesheets" do
|
14
|
+
Rails.application.config.generators.stylesheets = false
|
15
|
+
end
|
16
|
+
|
13
17
|
initializer "tailwindcss.disable_assets_cache" do
|
14
18
|
Rails.application.config.assets.configure do |env|
|
15
19
|
env.cache = ActiveSupport::Cache.lookup_store(:null_store)
|
data/lib/tailwindcss/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tailwindcss-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|