activeguild / vite-plugin-sass-dts

This is a plugin that automatically creates a type file when using the CSS module type-safely.
MIT License
116 stars 18 forks source link

Could it support camelcase option? #25

Closed pspgbhu closed 2 years ago

pspgbhu commented 2 years ago

In the vite, it support css module camelcase by to set css.modules.localsConvention: 'camelCase'.

but this plugin dose not seem to support camelcase option, so could it support camecase option?

activeguild commented 2 years ago

@pspgbhu Thanks contact. I think you can change the key to the target setting when 'camelCase' or 'camelCaseOnly' is set in css.modules.global Convention. Support will take some time.

activeguild commented 2 years ago

I think it'll go something like this. https://github.com/activeguild/vite-plugin-sass-dts/pull/26/commits/081aa66e63200dc079014d85499bf0183e73146f

pspgbhu commented 2 years ago

@activeguild thanks, i had review it. and i created a pull request to fix toCamelCase function

activeguild commented 2 years ago

@pspgbhu Thank you. I just released it including the PR that I got support for.