Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quiet Sass deprecation warnings from dependencies like Bootstrap. Fol… #493

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/generators/trln_argon/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ def inject_local_env_loader
end
end

def inject_sass_config
# See https://github.com/tablecheck/dartsass-sprockets?tab=readme-ov-file#silencing-deprecation-warnings
insert_into_file 'config/application.rb', after: /config\.eager_load_paths.*$/ do
"\n\n # Quiet Sass deprecation warnings from dependencies"\
"\n config.sass.quiet_deps = true"
end
end

def inject_into_dev_env
return if IO.read('config/environments/development.rb').include?('BetterErrors')
insert_into_file 'config/environments/development.rb', after: 'Rails.application.configure do' do
Expand Down
Loading