webpack-dev-server 438 B

1234567891011121314151617181920
  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/dev_server_runner"
  11. APP_ROOT = File.expand_path("..", __dir__)
  12. Dir.chdir(APP_ROOT) do
  13. Webpacker::DevServerRunner.run(ARGV)
  14. end