webpack 433 B

12345678910111213141516171819
  1. #!/usr/bin/env ruby
  2. ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
  3. ENV["NODE_ENV"] ||= "development"
  4. require "pathname"
  5. ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
  6. Pathname.new(__FILE__).realpath)
  7. require "rubygems"
  8. require "bundler/setup"
  9. require "webpacker"
  10. require "webpacker/webpack_runner"
  11. APP_ROOT = File.expand_path("..", __dir__)
  12. Dir.chdir(APP_ROOT) do
  13. Webpacker::WebpackRunner.run(ARGV)
  14. end