Skip to content

Commit c6546ac

Browse files
author
David Heinemeier Hansson
committed
Prevent repeated run caching of class names
1 parent c941c5a commit c6546ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/tailwindcss/compressor.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ def self.call(input)
1111

1212
def initialize(options = {})
1313
@options = { paths_with_css_class_names: [ "app/views/**/*.*", "app/helpers/**/*.rb" ] }.merge(options).freeze
14-
@purger = Tailwindcss::Purger.new(@options)
1514
end
1615

1716
def call(input)
18-
{ data: @purger.purge(input[:data]) }
17+
{ data: Tailwindcss::Purger.new(**@options).purge(input[:data]) }
1918
end
2019
end

0 commit comments

Comments
 (0)