tailwindcss-rails 2.0.22-x86_64-darwin → 2.0.24-x86_64-darwin

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: 462f9e360c6cc7816aa51c45d2261c7bd9e841db8e677b7389b5e48a9543c97d
4
- data.tar.gz: b38241eced8d86df42cb1bdd6217a2d97716389a0211a46464b56acf1617075e
3
+ metadata.gz: 530db5b8f0c5541b01ce617bcae1f779d1af5ddf44ebf5e20d7daa62066c280b
4
+ data.tar.gz: 95ee2e72294bd403659e3392914325239fd13f3320032d8cdedd65857daa93e2
5
5
  SHA512:
6
- metadata.gz: a41a842e4ef31e548859b44a385cedaa90727e48b827abedb249817d20e972dd6cab211770b9d9da019b4cd6abb959d43129646e5e9a7e31d2f3b42a9b251397
7
- data.tar.gz: ce8680608455ea248482a1a1dbdfdd7732a9d7649a2a7b10082f3606b86c17f4ae9c7afecc370798644a17dd7b20f592282bc5505e4ea535cd5a99b31fc820d7
6
+ metadata.gz: 4a99597638e87290bf97c0ac1da010f30c25b37958ec60a4da9201e8e295aa9b3d4ee839ed772a2400ef6acc84ba132009d104fabb18f1e1efbdda9e7b5f359d
7
+ data.tar.gz: d00b1eba9e190d991000c00894a9fd3dda4350c5bd65c0ca0825778efb33a5f1a49817bc4e84ad96aa635c901bd6ce98073734459261df9dacc12ad4862dbb13
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-darwin
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