Dear mizdra,
Thank you for your great work on happy-css-modules — I really appreciate the excellent library.
I’m currently trying to migrate to css-modules-kit, but I encountered the error mentioned in the title when running cmk.
In my environment, I use Vite with CSS Modules and follow a kebab-case naming convention for class names (hoge-fuga) for personal reasons. I configure localsConvention: 'camelCaseOnly' in Vite so that class names can be used in camelCase on the JS/TS side.
happy-css-modules works fine with this setup, but I'm wondering: does css-modules-kit require class names to be camelCase in the CSS as well?
Thank you for your time, and I’d appreciate it if you could take a look when convenient.
みずどらさん
happy-css-modules から大変お世話になっております。素晴らしいライブラリをありがとうございます。
こちらのライブラリに移行させていただこうと使用を試してみたのですが、 cmk 実行時にタイトルのエラーが表示されます。
こちらの環境としてはVite + CSS Moduleを使用しており、CSSクラス名の命名には宗教上の理由からケバブケース( hoge-fuga 形式)を採用しています。Vite configの localsConvention を camelCaseOnly に設定して、JS(TS)側ではキャメルケースを使用できるようにしています。
happy-css-modules では hcm コマンドの localsConvention オプションが利用可能ですが、 cmk の場合はCSSクラス名にキャメルケースしか使用できないような制限があったりしますでしょうか?
お忙しいところ恐れ入りますが、ご確認のほどよろしくお願いいたします。
Dear mizdra,
Thank you for your great work on
happy-css-modules— I really appreciate the excellent library.I’m currently trying to migrate to
css-modules-kit, but I encountered the error mentioned in the title when runningcmk.In my environment, I use Vite with CSS Modules and follow a kebab-case naming convention for class names (
hoge-fuga) for personal reasons. I configurelocalsConvention: 'camelCaseOnly'in Vite so that class names can be used in camelCase on the JS/TS side.happy-css-modulesworks fine with this setup, but I'm wondering: doescss-modules-kitrequire class names to be camelCase in the CSS as well?Thank you for your time, and I’d appreciate it if you could take a look when convenient.
みずどらさん
happy-css-modules から大変お世話になっております。素晴らしいライブラリをありがとうございます。
こちらのライブラリに移行させていただこうと使用を試してみたのですが、
cmk実行時にタイトルのエラーが表示されます。こちらの環境としてはVite + CSS Moduleを使用しており、CSSクラス名の命名には宗教上の理由からケバブケース(
hoge-fuga形式)を採用しています。Vite configのlocalsConventionをcamelCaseOnlyに設定して、JS(TS)側ではキャメルケースを使用できるようにしています。happy-css-modules では
hcmコマンドのlocalsConventionオプションが利用可能ですが、cmkの場合はCSSクラス名にキャメルケースしか使用できないような制限があったりしますでしょうか?お忙しいところ恐れ入りますが、ご確認のほどよろしくお願いいたします。