Closed
Description
Description
This is a follow-up for #21730. The config added a catch-all rule for \.(sc|sa|c)ss$
with the sass-loader as the last loader.
gutenberg/packages/scripts/config/webpack.config.js
Lines 110 to 115 in 2181823
This means the sass-loader is also used on plain .css files. While not bad it's kind of unexpected and may cause double processing a file which was already processed by a broader postcss-config, see example from #22732.
I'm suggesting to use a custom rule for .scss files which should allow us to make node-sass/sass/sass-loader a peer dependency. #22729 would be related to that.