vordgi / nimpl-classnames-minifier

Library for configuring style (css/scss/sass) modules to generate compressed classes in next.js
https://www.npmjs.com/package/@nimpl/classnames-minifier
MIT License
32 stars 1 forks source link

Error on build in 3.1.0 #97

Closed codefln closed 6 months ago

codefln commented 6 months ago

After update to version 3.1.0

I'm getting an error when building: classnames-minifier: Invalid configuration. Valid keys are: prefix, reservedNames, cacheDir, distDir. See https://github.com/vordgi/classnames-minifier#configuration

const withMinifier = classnamesMinifier({
  distDir: 'dist',
  prefix: 'x',
});

In version 3.0.0, is ok

vordgi commented 6 months ago

Hello. Thank you very much for writing! I apologize for this problem.

Fixed in version 3.1.1.