Ignore Sass warnings until we update our dependencies

We're getting one warning when compiling the assets due to the code we
use from font-awesome-sass, and a lot of warnings due to the code we use
from foundation.

Since these warnings are very annoying, and we get them both when
deploying and every time we change an SCSS file in development, we're
silencing them.

I haven't found the way to pass the `quiet_deps` option to the Sprockets
processor, so I'm monkey-patching the Sass engine instead.
This commit is contained in:
Javi Martín
2024-04-01 21:36:47 +02:00
parent 6ddafd9827
commit fae29069d4

View File

@@ -0,0 +1,8 @@
# TODO: remove once we upgrade Foundation and Font Awesome
SassC::Engine.class_eval do
alias_method :original_initialize, :initialize
def initialize(template, options = {})
original_initialize(template, options.merge(quiet_deps: true))
end
end