Closed jamiek-acl closed 1 year ago
Below is the correct configuration.
return { ...sassLoaderOptions, sassOptions: { quietDeps: true, }, };
Testing on craco v7.1.0 and sass ^1.49.8, this configuration works correctly and dependency warnings are hidden.
Note that this configuration option is known to be nonfunctional below sass 1.35.0, so ensure you have the correct version installed.
Additionally, from sass documentation,
Stylesheets that are imported relative to the entrypoint are not considered dependencies.
So if you're importing with a relative path (such as "./dependency"), they will not be treated as a dependency and will print the warnings regardless.
What's happening I'm trying to modify the SASS config via craco, but my settings aren't working. I'm possibly doing the config wrong but it looks correct as per the documentation and other things I have read online. I've tried various configs as noted below. Any guidance would be appreciated.
What should happen The SASS deprecation warnings should be silenced when I start my app.
CRACO version ^5.8.0
CRACO config
package.json
Thank you.