Class: Tailwindcss::Compiler::Channel
- Inherits:
-
ActionCable::Channel::Base
- Object
- ActionCable::Channel::Base
- Tailwindcss::Compiler::Channel
show all
- Extended by:
- AssetHelper
- Defined in:
- lib/tailwindcss/compiler/channel.rb
Class Method Summary
collapse
Instance Method Summary
collapse
tailwind_stylesheet_path, view_component_ui_asset_tags
Class Method Details
.broadcast_css_changed ⇒ Object
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
#subscribed ⇒ Object
8
9
10
|
# File 'lib/tailwindcss/compiler/channel.rb', line 8
def subscribed
stream_from "compiler_channel"
end
|