We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de2c073 commit 9941df2Copy full SHA for 9941df2
lib/tailwindcss/compressor.rb
@@ -10,8 +10,8 @@ def self.call(input)
10
end
11
12
def initialize(options = {})
13
- @options = {
14
- files_with_class_names: Rails.root.glob("app/views/**/*.*") + Rails.root.glob("app/helpers/**/*.rb"),
+ @options = {
+ files_with_class_names: files_with_class_names,
15
only_purge: %w[ tailwind ]
16
}.merge(options).freeze
17
@@ -23,4 +23,11 @@ def call(input)
23
input[:data]
24
25
26
+
27
+ private
28
+ def files_with_class_names
29
+ Rails.root.glob("app/views/**/*.*") +
30
+ Rails.root.glob("app/helpers/**/*.rb") +
31
+ Rails.root.glob("app/javascript/**/*.js")
32
+ end
33
0 commit comments