Sha256: 86dcb5d5c2a800079161d8b07f94f7fa4d052930c53d10f0664c32c5a9f1ff7e
Contents?: true
Size: 818 Bytes
Versions: 2
Compression:
Stored size: 818 Bytes
Contents
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 ) 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tailwindcss-rails-1.0.0 | lib/tailwindcss/engine.rb |
tailwindcss-rails-0.5.4 | lib/tailwindcss/engine.rb |