title: How to completely remove webpack and all its dependencies from Rails App
body: <p>I created my rails with <a href="http://github.com/lewagon/rails-templates" rel="noreferrer">this template</a> that included webpack, I still write my javascript code in app/assets/javascript. I am trying to deploy my app to heroku and it keeps failing, I get this error </p>
  
  <blockquote>
    <p>"remote:<br>
    /tmp/build_6f0656280cbbda40c5832ccb79fc1783/vendor/bundle/ruby/2.3.0/gems/bundler-1.15.2/lib/bundler/rubygems_integration.rb:432:in
    `block in replace_bin_path': can't find executable webpack for gem
    webpacker (Gem::Exception)"</p>
  </blockquote>
  
  <p>I have tried lots of solutions but still cant get my app deployed to Heroku. I want to know how to completely delete webpack and all its depencies from my app since it was not even useful to my app</p>
  
  <pre><code>    source 'https://rubygems.org'
  ruby '2.3.5'
  
  gem 'figaro'
  gem 'jbuilder', '~&gt; 2.0'
  gem 'puma'
  gem 'rails', '5.1.4'
  gem 'redis'
  gem 'cloudinary'
  gem 'carrierwave', '~&gt; 1.2'
  gem 'rails_admin', '~&gt; 1.2'
  group :production do
   gem 'pg', '~&gt; 0.20'
  end
  
  
  
  gem 'autoprefixer-rails'
  gem 'bootstrap-sass'
  gem 'jquery-rails'
  gem 'font-awesome-sass'
  gem 'sass-rails'
  gem 'simple_form'
  gem 'turbolinks', '~&gt; 5.0.0'
  gem 'coffee-rails'
  
  gem 'uglifier'
  gem 'webpacker'
  gem 'devise'
  gem 'ransack'
  gem 'trix'
  
  
  gem "letter_opener", group: :development
  
  
  group :development do
    gem 'web-console', '&gt;= 3.3.0'
    gem 'sqlite3'
  end
  
  group :development, :test do
    # gem 'binding_of_caller'
    # gem 'better_errors'
    gem 'pry-byebug'
    gem 'pry-rails'
    gem 'listen', '~&gt; 3.0.5'
    gem 'spring'
    gem 'spring-watcher-listen', '~&gt; 2.0.0'
  end
  </code></pre>