Skip to content

Package the tailwindcss binary executable #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Dec 17, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Drop old machinery
  • Loading branch information
David Heinemeier Hansson committed Dec 17, 2021
commit d671cb51beaf1b59cb36048ff81140c15d7842b1
33 changes: 0 additions & 33 deletions lib/tailwindcss/compressor.rb

This file was deleted.

13 changes: 1 addition & 12 deletions lib/tailwindcss/engine.rb
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
require "rails"
require "tailwindcss/compressor"

module Tailwindcss
class Engine < ::Rails::Engine
initializer "tailwindcss.compressor" do
Sprockets.register_compressor "text/css", :purger, Tailwindcss::Compressor
end

initializer "tailwindcss.assets" do
Rails.application.config.assets.precompile += %w( tailwind.css inter-font.css )
Rails.application.config.assets.precompile += %w( inter-font.css )
end

initializer "tailwindcss.disable_generator_stylesheets" do
Rails.application.config.generators.stylesheets = false
end

initializer "tailwindcss.disable_assets_cache" do
Rails.application.config.assets.configure do |env|
env.cache = ActiveSupport::Cache.lookup_store(:null_store)
end if Rails.env.production?
end

config.app_generators do |g|
g.template_engine :tailwindcss
end
Expand Down
124 changes: 0 additions & 124 deletions lib/tailwindcss/purger.rb

This file was deleted.

25 changes: 0 additions & 25 deletions lib/tasks/tailwindcss_tasks.rake

This file was deleted.

12 changes: 0 additions & 12 deletions package.json

This file was deleted.

17 changes: 0 additions & 17 deletions tailwind.config.js

This file was deleted.

1 change: 0 additions & 1 deletion test/fixtures/files/placeholders.html.erb

This file was deleted.

1 change: 0 additions & 1 deletion test/fixtures/files/placeholders.html.haml

This file was deleted.

1 change: 0 additions & 1 deletion test/fixtures/files/placeholders.html.slim

This file was deleted.

Loading