method
run_javascript
v7.0.0 -
Show latest stable
- Class:
Rails::Generators::AppBase
run_javascript()private
No documentation available.
# File railties/lib/rails/generators/app_base.rb, line 447
def run_javascript
return if options[:skip_javascript] || !bundle_install?
case adjusted_javascript_option
when "importmap" then rails_command "importmap:install"
when "webpack", "esbuild", "rollup" then rails_command "javascript:install:#{adjusted_javascript_option}"
end
end