1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Don't inline run webpacker:install on rails new

This commit is contained in:
jasl 2020-05-30 05:44:04 +08:00
parent 801741f9a9
commit 34adebd4a7

View file

@ -416,9 +416,9 @@ module Rails
def run_webpack def run_webpack
if webpack_install? if webpack_install?
rails_command "webpacker:install", inline: true rails_command "webpacker:install"
if options[:webpack] && options[:webpack] != "webpack" if options[:webpack] && options[:webpack] != "webpack"
rails_command "webpacker:install:#{options[:webpack]}", inline: true rails_command "webpacker:install:#{options[:webpack]}"
end end
end end
end end