Sha256: 47feea063eae44cdf514b42124822e0a23c27a73339d6cdd4648146a1e7952e9

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
ENV["NODE_ENV"]  ||= "development"

require("pathname")
ENV["BUNDLE_GEMFILE"] ||= File.expand_path(
  "../../Gemfile",
  Pathname.new(__FILE__).realpath
)

require("bundler/setup")

require("webpacker")
require("webpacker/dev_server_runner")

APP_ROOT = File.expand_path("..", __dir__)
Dir.chdir(APP_ROOT) do
  Webpacker::DevServerRunner.run(ARGV)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zapp-0.2.1 examples/rails-app/bin/webpack-dev-server
zapp-0.1.1 examples/rails-app/bin/webpack-dev-server
zapp-0.1.0 examples/rails-app/bin/webpack-dev-server