about summary refs log tree commit diff
path: root/bin/webpack
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-04-13 16:36:46 -0500
committerDavid Yip <yipdw@member.fsf.org>2018-04-13 16:36:46 -0500
commited490b781f9347b77eb2305e33ba6dd83f3539b0 (patch)
tree4f958ce8da072e35ef654cf5ae0a152f613f3ad8 /bin/webpack
parenta817f084eafaf5527445c29ab1d68f42b1a2872f (diff)
parent50529cbceb84e611bca497624a7a4c38113e5135 (diff)
Merge remote-tracking branch 'origin/master' into gs-master
  Conflicts:
 	Gemfile.lock
 	config/application.rb
Diffstat (limited to 'bin/webpack')
-rwxr-xr-xbin/webpack14
1 files changed, 6 insertions, 8 deletions
diff --git a/bin/webpack b/bin/webpack
index 9d3800c74..0869ad277 100755
--- a/bin/webpack
+++ b/bin/webpack
@@ -1,11 +1,7 @@
 #!/usr/bin/env ruby
-# frozen_string_literal: true
-#
-# This file was generated by Bundler.
-#
-# The application 'webpack' is installed as part of a gem, and
-# this file is here to facilitate running it.
-#
+
+ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
+ENV["NODE_ENV"]  ||= ENV["NODE_ENV"] || "development"
 
 require "pathname"
 ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
@@ -14,4 +10,6 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
 require "rubygems"
 require "bundler/setup"
 
-load Gem.bin_path("webpacker", "webpack")
+require "webpacker"
+require "webpacker/webpack_runner"
+Webpacker::WebpackRunner.run(ARGV)