postcss-modules icon indicating copy to clipboard operation
postcss-modules copied to clipboard

Short class names in production

Open tf opened this issue 3 years ago • 1 comments

Is it considered safe to configure something like generateScopedName: "_[hash:base64:5]" to generate shorter class names for production environments or does this risk generating clashing class names? I could not find any advise regarding this in the issues or the readme.

tf avatar Aug 25 '22 15:08 tf

Collisions are not detected by this package, so you may want to track generated class names inside getJSON and at the end of the build process, check if there were any collisions.

squidfunk avatar Jan 18 '23 10:01 squidfunk