Mercurial > zeropaste
annotate bin/webpack-dev-server @ 486:5419f1c6a291
Readd node_modules assets load path
author | nanaya <me@nanaya.pro> |
---|---|
date | Sat, 15 Jan 2022 02:09:35 +0900 |
parents | 802dcd44188e |
children |
rev | line source |
---|---|
468 | 1 #!/usr/bin/env ruby |
2 | |
3 ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development" | |
4 ENV["NODE_ENV"] ||= "development" | |
5 | |
6 require "pathname" | |
7 ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", | |
8 Pathname.new(__FILE__).realpath) | |
9 | |
10 require "bundler/setup" | |
11 | |
12 require "webpacker" | |
13 require "webpacker/dev_server_runner" | |
14 | |
15 APP_ROOT = File.expand_path("..", __dir__) | |
16 Dir.chdir(APP_ROOT) do | |
17 Webpacker::DevServerRunner.run(ARGV) | |
18 end |