<%= shebang %> NODE_ENV = ENV["NODE_ENV"] || ENV["RAILS_ENV"] || "development" APP_PATH = File.expand_path('../', __dir__) VENDOR_PATH = File.expand_path('../vendor', __dir__) WEBPACK_BIN = "./node_modules/.bin/webpack" WEBPACK_CONFIG = "#{APP_PATH}/config/sewing-kit.config.js" Dir.chdir(APP_PATH) do exec "NODE_ENV=#{NODE_ENV} #{WEBPACK_BIN} --config #{WEBPACK_CONFIG} #{ARGV.join(" ")}" end