mastodon/bin/webpacker

16 lines
394 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env ruby
2018-04-12 12:45:17 +00:00
require "pathname"
require "bundler/setup"
2018-04-12 12:45:17 +00:00
require "webpacker"
require "webpacker/webpack_runner"
2022-05-09 17:57:57 +00:00
ENV["RAILS_ENV"] ||= "development"
ENV["NODE_ENV"] ||= ENV["RAILS_ENV"]
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", Pathname.new(__FILE__).realpath)
APP_ROOT = File.expand_path("..", __dir__)
Dir.chdir(APP_ROOT) do
Webpacker::WebpackRunner.run(ARGV)
end