lib/sewing_kit/railtie.rb in sewing_kit-0.27.0 vs lib/sewing_kit/railtie.rb in sewing_kit-0.27.1
- old
+ new
@@ -7,10 +7,10 @@
module SewingKit
class Railtie < ::Rails::Railtie
initializer "sewing_kit.initialize_webpack" do
is_development = Rails.env.development? && ENV['SK_SIMULATE_PRODUCTION'] != '1'
- if is_development && Rails.const_defined?(:Server)
+ if is_development && (Rails.const_defined?(:Server) || ENV['SK_FORCE_DEV_SERVER'])
webpack_dev = SewingKit::Webpack::Dev.new
webpack_dev.start
end
end