aboutsummaryrefslogtreecommitdiffstats
path: root/bin/webpack
diff options
context:
space:
mode:
authorJavan Makhmali <javan@javan.us>2018-02-12 10:34:29 -0500
committerJavan Makhmali <javan@javan.us>2018-02-12 10:34:29 -0500
commit2f13b3c9fe21debec4bd9afe4601125f4fe29ce2 (patch)
tree973bfc4599de65fddfe39206374b7424f4e7e7ec /bin/webpack
parent63add5acc4a9bd84907bf6bf17de307792336539 (diff)
downloadrails-2f13b3c9fe21debec4bd9afe4601125f4fe29ce2.tar.gz
rails-2f13b3c9fe21debec4bd9afe4601125f4fe29ce2.tar.bz2
rails-2f13b3c9fe21debec4bd9afe4601125f4fe29ce2.zip
Pull activetext.js into dummy app with webpacker
Diffstat (limited to 'bin/webpack')
-rwxr-xr-xbin/webpack29
1 files changed, 29 insertions, 0 deletions
diff --git a/bin/webpack b/bin/webpack
new file mode 100755
index 0000000000..917c5096f5
--- /dev/null
+++ b/bin/webpack
@@ -0,0 +1,29 @@
+#!/usr/bin/env ruby
+# frozen_string_literal: true
+
+#
+# This file was generated by Bundler.
+#
+# The application 'webpack' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require "pathname"
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+bundle_binstub = File.expand_path("../bundle", __FILE__)
+
+if File.file?(bundle_binstub)
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
+ load(bundle_binstub)
+ else
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
+Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
+ end
+end
+
+require "rubygems"
+require "bundler/setup"
+
+load Gem.bin_path("webpacker", "webpack")