Sha256: 4ae06e7e1af861781eedf2f6ee4b6a3f5d70ea442d302b841a9d8310c1b1ef74
Contents?: true
Size: 930 Bytes
Versions: 1
Compression:
Stored size: 930 Bytes
Contents
require 'rails' require 'rails/railtie' require 'sewing_kit/webpack/compiler' require 'sewing_kit/webpack/helper' require 'sewing_kit/webpack/dev' module SewingKit class Railtie < ::Rails::Railtie initializer "sewing_kit.initialize_webpack" do if Rails.env.development? && Rails.const_defined?(:Server) webpack_dev = SewingKit::Webpack::Dev.new webpack_dev.start end end config.after_initialize do ActiveSupport.on_load(:action_view) do include SewingKit::Webpack::Helper end end config.sewing_kit = ActiveSupport::OrderedOptions.new config.sewing_kit.webpack = ActiveSupport::OrderedOptions.new config.sewing_kit.webpack.manifest_dir = 'tmp/sewing-kit' config.sewing_kit.webpack.manifest_filename = 'sewing-kit-manifest.json' config.sewing_kit.webpack.verbose = false rake_tasks do load "tasks/sewing_kit.rake" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sewing_kit-0.4.6 | lib/sewing_kit/railtie.rb |