Sha256: a45f9b992308073c4bf42788c3aae3ccebe8313689c8b544ab95783905e80b25
Contents?: true
Size: 782 Bytes
Versions: 3
Compression:
Stored size: 782 Bytes
Contents
module Webpacker extend self def bootstrap Webpacker::Env.load Webpacker::Configuration.load Webpacker::Manifest.load end def compile Webpacker::Compiler.compile Webpacker::Manifest.load end def env Webpacker::Env.current.inquiry end def self.rails32? Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR == 2 end def self.rails40? Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR == 0 end def self.rails41? Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR == 1 end def self.rails_less_than_42? rails32? || rails40? || rails41? end end require "webpacker/env" require "webpacker/configuration" require "webpacker/manifest" require "webpacker/compiler" require "webpacker/railtie" if defined?(Rails)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webpacker-legacy-0.1.2 | lib/webpacker.rb |
webpacker-legacy-0.1.1 | lib/webpacker.rb |
webpacker-legacy-0.1.0 | lib/webpacker.rb |