method

run_webpack

rails latest stable - Class: Rails::Generators::AppBase

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

run_webpack()
private

No documentation available.

# File railties/lib/rails/generators/app_base.rb, line 431
      def run_webpack
        return unless webpack_install?

        unless bundle_install?
          say <<~EXPLAIN
            Skipping `rails webpacker:install` because `bundle install` was skipped.
            To complete setup, you must run `bundle install` followed by `rails webpacker:install`.
          EXPLAIN
          return
        end

        rails_command "webpacker:install"
        if options[:webpack] && options[:webpack] != "webpack"
          rails_command "webpacker:install:#{options[:webpack]}"
        end
      end