diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-12-10 10:46:24 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-12-10 10:46:24 +0900 |
commit | c2c840fa6b66a43959901235ca7b3995528e4dac (patch) | |
tree | ca11dd9411e1ca57a464eacb0c72c1e32cb1cef9 /railties/lib | |
parent | c16296c79556ac660a0d7bd2df95e348a9e8df31 (diff) | |
download | rails-c2c840fa6b66a43959901235ca7b3995528e4dac.tar.gz rails-c2c840fa6b66a43959901235ca7b3995528e4dac.tar.bz2 rails-c2c840fa6b66a43959901235ca7b3995528e4dac.zip |
run `webpack` command only when webpack option is specified
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 578aa23513..576c36fc86 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -426,7 +426,7 @@ module Rails end def run_webpack - rails_command "webpacker:install" + rails_command "webpacker:install" if options[:webpack] end def generate_spring_binstubs |