tailwindcss-rails 2.0.22-x64-mingw-ucrt → 2.0.24-x64-mingw-ucrt

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: c6da774dd35d4d86d7a5bb641ef97e25118fe4034dd9a34faac2e26557bc000a
4
- data.tar.gz: c0d103f1890d19c446daa59d54f02dfd0f449121d229acd4b1ed5f8cda4527ab
3
+ metadata.gz: a1b5ef746a03976e9267dd307062ab9faa59ad2b34771f0212449ae4b1ea9948
4
+ data.tar.gz: a009ae867aee5ac69963c259fc072ebf3eea341b9ea5a5947ba0a72e02a5c705
5
5
  SHA512:
6
- metadata.gz: 534ee89ddccce6bc8c63774353f1a32fd83c8ee082de288f6e3dfff1f5750ad2dedfdbf96f68e3d47159c3dd87b52aa6fee6645dfb064ecf6b7baff35eb3861a
7
- data.tar.gz: 02c7a4472b8e16cd166d7c115891c8b459f292993e15fd59af9b9d3b5f8fcfe0db9ea9e89ced111aed78646e73389a1f5c7fd135feb2a07fa378a20283c0c603
6
+ metadata.gz: 95d89230c8519f9461704ec18bab019e20bc6bc492a6fddbed0e187d5b9f108e5d86216a805c7ee99a366ffa415c9345c539d21941ab19e73b068b0500dc4fa8
7
+ data.tar.gz: 6714b0c35f686b5de9aeb86c8cca2a647e9de64ddda80d329a673b55fe6f98205fa3d2ddbc360b0672149f10ee0640b6ea2b1266507307674ddbec47a4efee35
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: x64-mingw-ucrt
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