Sha256: e380e1c05f22e9c0003cceb640ea895998b198424d7fa781f63796d509dbe9c3
Contents?: true
Size: 557 Bytes
Versions: 4
Compression:
Stored size: 557 Bytes
Contents
#!/usr/bin/env ruby require 'shellwords' ENV['RAILS_ENV'] ||= 'development' RAILS_ENV = ENV['RAILS_ENV'] ENV['NODE_ENV'] ||= RAILS_ENV NODE_ENV = ENV['NODE_ENV'] APP_PATH = File.expand_path('../', __dir__) ESCAPED_APP_PATH = APP_PATH.shellescape SET_NODE_PATH = "NODE_PATH=#{ESCAPED_APP_PATH}/node_modules" WEBPACK_BIN = "./node_modules/webpack/bin/webpack.js" WEBPACK_CONFIG = "#{ESCAPED_APP_PATH}/config/webpack/#{NODE_ENV}.js" Dir.chdir(APP_PATH) do exec "#{SET_NODE_PATH} #{WEBPACK_BIN} --config #{WEBPACK_CONFIG} #{ARGV.join(" ")}" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
railman-1.0.3 | templates/rails_app/bin/webpack |
railman-1.0.2 | templates/rails_app/bin/webpack |
railman-1.0.1 | templates/rails_app/bin/webpack |
railman-1.0.0 | templates/rails_app/bin/webpack |