Compress JS and CSS files for production

This commit is contained in:
Sebastian Serth
2022-12-06 01:27:51 +01:00
parent 9977e1614b
commit 73237412ed
3 changed files with 9 additions and 1 deletions

View File

@ -28,7 +28,10 @@ Rails.application.configure do
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass
config.assets.css_compressor = :sass
# Compress JavaScript using a preprocessor.
config.assets.js_compressor = :terser
# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false