Skip to content

Allow configuring postcss-modules options #8

Closed

Description

@dangerousdan

Allow passing through config options to postcss-modules so that we can control:

  • The generate scope name
  • hashPrefix
  • locals convention
postcssModulesPlugin({
  generateScopedName: "[name]__[local]___[hash:base64:5]",
  hashPrefix: "prefix",
  localsConvention: 'camelCaseOnly'
})

Activity

  1. added a commit that references this issue on Feb 27, 2026
    c3147c3
  2. ttempaa commented on Feb 27, 2026

    @ttempaa
    Owner

    Thanks for the suggestion! Implemented in #9

    tailwindPlugin({
      cssModules: {
        enabled: true,
        options: {
          generateScopedName: "[name]__[local]___[hash:base64:5]",
          hashPrefix: "prefix",
          localsConvention: "camelCaseOnly",
        },
      },
    });

    Available in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions