Class: Tailwindcss::Compiler::Channel

Inherits:
ActionCable::Channel::Base
  • Object
show all
Extended by:
AssetHelper
Defined in:
lib/tailwindcss/compiler/channel.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from AssetHelper

tailwind_stylesheet_path, view_component_ui_asset_tags

Class Method Details

.broadcast_css_changedObject



12
13
14
15
# File 'lib/tailwindcss/compiler/channel.rb', line 12

def self.broadcast_css_changed
  css_path = vite_asset_path("style.css")
  ActionCable.server.broadcast("compiler_channel", {css_path:})
end

Instance Method Details

#subscribedObject



8
9
10
# File 'lib/tailwindcss/compiler/channel.rb', line 8

def subscribed
  stream_from "compiler_channel"
end