tailwindcss-rails 2.0.22 → 2.0.24

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: 7418177b754f60c6f3453fbd8b4465326bc44f6e697b75c193d941e45d6ee8ca
4
- data.tar.gz: 47accf91912ae6ccb0df902e24dc94bee3aa4f633760c7d84e2e02560b167b44
3
+ metadata.gz: 3cc5f29de93eeb3395f77afbbe7ad5d869b27f34e78cd4ec0a134c98ab93ae2d
4
+ data.tar.gz: 2ea2a7fdab7755cddc55a9a3b1cce290c53997bae1ef9c3ebcf326230b92db6e
5
5
  SHA512:
6
- metadata.gz: fd965ebccbfbdecd51a61e6e41d2b4e1fc34f9353a757e8ec645d31966185f882a5efce06086eb95a5406744ea8b594baecaac7ba4dcc999d8beb0a8f2836218
7
- data.tar.gz: 1482a76b53c8ad518f4c4e23629abf996a3f26c0f3add32db1be121af5279f9871896341f4e3ea0ab940778dbdb73d9ecf49ae0a1a3b150d7062e9d14cb41966
6
+ metadata.gz: 7d653d5ad33ca2e1baabb5810cb64e9a92e95ada2b8f194fbaf1d3feac688792ab6d730c726d665918b4b5f33809d6a166bc7052c5f68f0b862beea2d0bd0f72
7
+ data.tar.gz: 3ff8b9308f3abb7740660d72be0491e6cf1438105d97945b8a026f611a38e1742efbf4dcc13a15fa51506118fd65d1b088cd5c9b976f217c2b8b742afa32079e
@@ -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,7 +1,7 @@
1
1
  module Tailwindcss
2
2
  # constants describing the upstream tailwindcss project
3
3
  module Upstream
4
- VERSION = "v3.2.6"
4
+ VERSION = "v3.2.7"
5
5
 
6
6
  # rubygems platform name => upstream release filename
7
7
  NATIVE_PLATFORMS = {
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "2.0.22"
2
+ VERSION = "2.0.24"
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.22
4
+ version: 2.0.24
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-08 00:00:00.000000000 Z
11
+ date: 2023-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties