rails: disable asset pipeline.
Disable the assets pipeline (Sprockets). Sprockets errors out now after upgrading to Sprockets 4 because of missing config files. We don't use it any more after switching to Webpack, so we can disable it entirely. Also disable a few more Rails features that we don't use (ActiveStorage, ActionCable, ActionMailbox, ActionText).
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Version of your assets, change this if you want to expire all your assets.
|
||||
Rails.application.config.assets.version = '1.0'
|
||||
|
||||
# Add additional assets to the asset load path.
|
||||
# Rails.application.config.assets.paths << Emoji.images_path
|
||||
|
||||
# Add Yarn node_modules folder to the asset load path.
|
||||
Rails.application.config.assets.paths << Rails.root.join('node_modules')
|
||||
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in the app/assets
|
||||
Rails.application.config.assets.precompile += %w( *.png *.jpg *.gif )
|
||||
Reference in New Issue
Block a user