about summary refs log tree commit diff
path: root/bin/webpack
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-09-27 21:41:54 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-09-27 14:41:54 +0200
commit901fc48aaec8c6c5f1ae3c210c701abce3c03c7c (patch)
tree3b5c62f75618dbaf8147533717e863d8829c35d9 /bin/webpack
parent3caf0ba92313c71d722b30f77c5c1355601fc7c1 (diff)
Upgrade Webpacker to version 3.0.1 (#5122)
Diffstat (limited to 'bin/webpack')
-rwxr-xr-xbin/webpack7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/webpack b/bin/webpack
index 867550eb8..528233a78 100755
--- a/bin/webpack
+++ b/bin/webpack
@@ -2,7 +2,6 @@
 $stdout.sync = true
 
 require "shellwords"
-require "yaml"
 
 ENV["RAILS_ENV"] ||= "development"
 RAILS_ENV = ENV["RAILS_ENV"]
@@ -20,9 +19,9 @@ unless File.exist?(WEBPACK_CONFIG)
   exit!
 end
 
-newenv  = { "NODE_PATH" => NODE_MODULES_PATH.shellescape }
-cmdline = ["yarn", "run", "webpack", "--", "--config", WEBPACK_CONFIG] + ARGV
+env = { "NODE_PATH" => NODE_MODULES_PATH.shellescape }
+cmd = [ "#{NODE_MODULES_PATH}/.bin/webpack", "--config", WEBPACK_CONFIG ] + ARGV
 
 Dir.chdir(APP_PATH) do
-  exec newenv, *cmdline
+  exec env, *cmd
 end