Sha256: 1187a03effcfb30a0cf3413f278bd66005f5dd537891dfbf0290d513d81c68ac

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

Stored size: 399 Bytes

Contents

<%= 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sewing_kit-0.5.1 lib/install/bin/webpack.tt
sewing_kit-0.4.6 lib/install/bin/webpack.tt
sewing_kit-0.5.0 lib/install/bin/webpack.tt