Sha256: 2bdac4f620e42d526e91a4fbd6650e0edf2a6aee2c128c9b10a0a66355c2ea4b
Contents?: true
Size: 783 Bytes
Versions: 14
Compression:
Stored size: 783 Bytes
Contents
# frozen_string_literal: true require "shopify_cli/theme/dev_server/hot_reload/script_injector" module ShopifyCLI module Theme module Extension class DevServer < ShopifyCLI::Theme::DevServer class HotReload < ShopifyCLI::Theme::DevServer::HotReload class ScriptInjector < ShopifyCLI::Theme::DevServer::HotReload::ScriptInjector private def javascript_files %w(hot_reload.js sse_client.js theme_extension.js) end def javascript_inline env = { mode: @mode } <<~JS (() => { window.__SHOPIFY_CLI_ENV__ = #{env.to_json}; })(); JS end end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems