From 071c9869565f78bc31e7efb202e33e32da8c5f98 Mon Sep 17 00:00:00 2001 From: Torsten Date: Mon, 23 Jan 2023 16:15:19 +0200 Subject: [PATCH] downgrade sprockets --- Gemfile | 1 + Gemfile.lock | 7 ++++--- config/environments/development.rb | 1 + config/initializers/assets.rb | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index a6c3ffd..a8f3e2b 100644 --- a/Gemfile +++ b/Gemfile @@ -8,6 +8,7 @@ gem "merged" , git: "https://github.com/HubFeenixMakers/merged" gem "rails", "~> 7.0" gem "sprockets-rails" +gem "sprockets" , "4.1.1" gem "pg", "~> 1.1" gem "importmap-rails" diff --git a/Gemfile.lock b/Gemfile.lock index 4046aa1..ca6cad2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/HubFeenixMakers/merged - revision: 99fe85f599282dc4ef43b595073e1a01d7a0dab6 + revision: 805729396709ef5e167b595abf6a8fbe00f1cfb6 specs: merged (0.1.0) active_hash @@ -347,9 +347,9 @@ GEM simple_form_tailwind_css (1.0.0) heroicon simple_form - sprockets (4.2.0) + sprockets (4.1.1) concurrent-ruby (~> 1.0) - rack (>= 2.2.4, < 4) + rack (> 1, < 3) sprockets-es6 (0.9.2) babel-source (>= 5.8.11) babel-transpiler @@ -434,6 +434,7 @@ DEPENDENCIES selenium-webdriver simple_form (= 5.1.0) simple_form_tailwind_css + sprockets (= 4.1.1) sprockets-rails tailwindcss-rails thredded (~> 1.0) diff --git a/config/environments/development.rb b/config/environments/development.rb index 2cc401f..a427297 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -62,6 +62,7 @@ Rails.application.configure do # Suppress logger output for asset requests. config.assets.quiet = false config.assets.debug = true + config.assets.unknown_asset_fallback = false # Raises error for missing translations. # config.i18n.raise_on_missing_translations = true diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index 962672c..da76d96 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -9,4 +9,4 @@ Rails.application.config.assets.version = "1.0" # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in the app/assets # folder are already added. -Rails.application.config.assets.precompile += %w( images/*.webp images/cms/*.*) +Rails.application.config.assets.precompile += %w( )