tailwindcss-rails 2.0.23 → 2.0.25

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: b6b9b0eb6fb9063a8913f44db800a12627d4765c329f5f28645e2444fc1456b0
4
- data.tar.gz: 3ef73ef5d50fffdf5cc8ab6cbbf7f7069183223b0aec3f393270e4c2472fe319
3
+ metadata.gz: d5cde80b77b9f1ab89a965a95913d5b419165dd225e61b1e17e673e9a77cf49a
4
+ data.tar.gz: 041f2c8f486086f95123cb23f1a94be72fa4fa31246cf2a6f5cbc1c452354931
5
5
  SHA512:
6
- metadata.gz: d7a02f2e5ad420918c31c270394f7b171485b255254d5310011486900ac3f16cdd4203b1bd934a326754a9048dd865e9f84d3fe0726d3deeddb18730cb41f28f
7
- data.tar.gz: d790c79739644097ca3cfee94db8cbe72d8b215e6fdbbb8a818458dacfc7604473fb7e2ea69a094125655b051f7dcf38ed318daeac7f6d4db3088634108f2c37
6
+ metadata.gz: 59bbb139595a1ed89ca664849155d6a170a1dbdf1f6190c8810260330d8011c0c08a7a0622bc43c5d4199fbd0ef63de440a30def0acc16b7830cb5dd1e08a1e8
7
+ data.tar.gz: 8a413d355e8929693a7dbce283d7b58db0c5cbf3d6950aeea0c1c53571459c66e5bc01f3b066588a11b77a69ab51fd60e05fea5887772ad304ff52cf2c21205e
@@ -18,5 +18,7 @@ module.exports = {
18
18
  require('@tailwindcss/forms'),
19
19
  require('@tailwindcss/aspect-ratio'),
20
20
  require('@tailwindcss/typography'),
21
+ require('@tailwindcss/line-clamp'),
22
+ require('@tailwindcss/container-queries'),
21
23
  ]
22
24
  }
@@ -62,7 +62,7 @@ module Tailwindcss
62
62
  "-o", Rails.root.join("app/assets/builds/tailwind.css").to_s,
63
63
  "-c", Rails.root.join("config/tailwind.config.js").to_s,
64
64
  ].tap do |command|
65
- command << "--minify" unless debug
65
+ command << "--minify" unless (debug || rails_css_compressor?)
66
66
  end
67
67
  end
68
68
 
@@ -72,6 +72,10 @@ module Tailwindcss
72
72
  command << "-p" if poll
73
73
  end
74
74
  end
75
+
76
+ def rails_css_compressor?
77
+ defined?(Rails) && Rails&.application&.config&.assets&.css_compressor.present?
78
+ end
75
79
  end
76
80
  end
77
81
  end
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "2.0.23"
2
+ VERSION = "2.0.25"
3
3
  end
data/lib/tasks/build.rake CHANGED
@@ -1,6 +1,6 @@
1
1
  namespace :tailwindcss do
2
2
  desc "Build your Tailwind CSS"
3
- task :build do |_, args|
3
+ task build: :environment do |_, args|
4
4
  debug = args.extras.include?("debug")
5
5
  command = Tailwindcss::Commands.compile_command(debug: debug)
6
6
  puts command.inspect if args.extras.include?("verbose")
@@ -8,7 +8,7 @@ namespace :tailwindcss do
8
8
  end
9
9
 
10
10
  desc "Watch and build your Tailwind CSS on file changes"
11
- task :watch do |_, args|
11
+ task watch: :environment do |_, args|
12
12
  debug = args.extras.include?("debug")
13
13
  poll = args.extras.include?("poll")
14
14
  command = Tailwindcss::Commands.watch_command(debug: debug, poll: poll)
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: 2.0.23
4
+ version: 2.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-19 00:00:00.000000000 Z
11
+ date: 2023-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -24,6 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 6.0.0
27
+ force_ruby_platform: false
27
28
  description:
28
29
  email: david@loudthinking.com
29
30
  executables:
@@ -98,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  - !ruby/object:Gem::Version
99
100
  version: '0'
100
101
  requirements: []
101
- rubygems_version: 3.4.1
102
+ rubygems_version: 3.4.6
102
103
  signing_key:
103
104
  specification_version: 4
104
105
  summary: Integrate Tailwind CSS with the asset pipeline in Rails.