diff options
author | Alessandro Rodi <alessandro.rodi@renuo.ch> | 2018-11-13 16:06:42 +0100 |
---|---|---|
committer | Alessandro Rodi <alessandro.rodi@renuo.ch> | 2018-11-13 16:06:42 +0100 |
commit | 0d90d1e019bd0cfb9dbb9c7e463de32bf87387d6 (patch) | |
tree | 456537bf74d5f1a757438c817d1afb277ec79cb0 /railties/lib | |
parent | 9175dd2e2b917d17434bf127381d8f69106aa071 (diff) | |
download | rails-0d90d1e019bd0cfb9dbb9c7e463de32bf87387d6.tar.gz rails-0d90d1e019bd0cfb9dbb9c7e463de32bf87387d6.tar.bz2 rails-0d90d1e019bd0cfb9dbb9c7e463de32bf87387d6.zip |
add a nice alias for the --webpack option
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index f56f79b8d4..33002790d4 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -258,8 +258,8 @@ module Rails class_option :skip_bundle, type: :boolean, aliases: "-B", default: false, desc: "Don't run bundle install" - class_option :webpack, type: :string, default: nil, - desc: "Preconfigure Webpack with a particular framework (options: #{WEBPACKS.join('/')})" + class_option :webpack, type: :string, aliases: "--webpacker", default: nil, + desc: "Preconfigure Webpack with a particular framework (options: #{WEBPACKS.join(", ")})" class_option :skip_webpack_install, type: :boolean, default: false, desc: "Don't run Webpack install" |