WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@layershifter
Copy link
Member

@layershifter layershifter commented Jul 28, 2025

This pull request introduces a new feature to validate and manage the classNameHashSalt option to @griffel/webpack-extraction-plugin packages. It also ensures consistent handling of the salt in generated code and adds tests for validation.

The option can be added the loader:

module.exports = {
  module: {
    rules: [
      {
        use: {
          loader: GriffelCSSExtractionPlugin.loader,
          options: { classNameHashSalt: 'YOUR_SALT' },
        },
      },  
   ]
 }
};

The value of classNameHashSalt should match value specified for @griffel/webpack-loader.

@layershifter layershifter marked this pull request as ready for review July 28, 2025 08:56
@layershifter layershifter requested a review from a team as a code owner July 28, 2025 08:56
@github-actions
Copy link

📊 Bundle size report

✅ No changes found

@layershifter layershifter merged commit 230887b into microsoft:main Jul 28, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants