$ account shakacode
sass-resources-loader is a Webpack loader that automatically injects Sass resources (variables, mixins, functions) into every Sass module processed by Webpack. It eliminates the need to manually import shared Sass utilities in each file by preprocessing Sass source files to prepend resource content. The loader supports both @import and @use Sass syntax, includes special handling for hoisting @use statements (which must precede other declarations), and correctly rewrites relative paths in imports to be relative to the webpack context. It handles glob patterns for resource files and provides detailed error reporting.
Shakapacker is a bridge to webpack or Rspack for Rails apps, supporting both webpack 5 and Rspack builds. It provides features like code splitting, Hot Module Replacement (HMR), CDN asset hosts, Subresource Integrity, and HTTP 103 Early Hints. The repository is well-maintained with a clear structure and documentation.