tailwindcss-rails 2.0.22-x86_64-linux → 2.0.24-x86_64-linux

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: 52ae8bd5e2fed073c9d1a34d1b448e21362bbdae89088d125c5e15086be6a436
4
- data.tar.gz: 5c462df055b90b2d3738c3836f9c5a41fc8b36f804559b662ed6295922b33538
3
+ metadata.gz: 6e795972234926c2c2daf9f50e949ccb1c0923594ea9e72e987fbf7973ce9b73
4
+ data.tar.gz: e7e6197a0453e3ffc3997dc80ba3e14baa6bd44c0480f252accc0c8da5e20b62
5
5
  SHA512:
6
- metadata.gz: dbaffcf9ab111388d7d268798f4edaaf64ce2e41e7e7c9c8668d006c3f3df3c6c2c46e0d781cb09f5017e52f7158c9013ab1a8d7473d78b5d8744ed34294b217
7
- data.tar.gz: 0c19d63839399e0fb64889dbe3db010042b6ef8f78bb8dcfbf0a150adfd890c619b3c25d48c823894b42475f538daaaf05b3a583f914612baa5f2d3620d77d0f
6
+ metadata.gz: 83c03273ecb870827270a6afca7e6ee996a56e0aebb12f57979314db990e94808dda213d949f35499976871a61ddb8d016f4642b9ea178e34d0ba7bb27a413b5
7
+ data.tar.gz: 390fbb424ac24d1cd254baf22666175ec4dbe6ac67bb15a49a123dc988c1570f5e2993dfae16b240ac882679ae57881a04c8b90aba89194f5977e99f99f77c8d
Binary file
@@ -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: x86_64-linux
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