j4pm/bin/webpack
2021-12-10 14:39:43 -05:00

18 lines
460 B
Ruby
Executable file

#!/nix/store/gh3kk90lki27xxbiybpwwvf6cy8sa4k2-ruby-3.0.2/bin/ruby
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
ENV["NODE_ENV"] ||= "development"
require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
require "bundler/setup"
require "webpacker"
require "webpacker/webpack_runner"
APP_ROOT = File.expand_path("..", __dir__)
Dir.chdir(APP_ROOT) do
Webpacker::WebpackRunner.run(ARGV)
end