You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warn when cmkOptions.enabled is not set, and exit with error when cmkOptions.enabled is false (#290)
* wip: support warning in codegen logger
* implement warning for missing `cmkOptions.enabled`
* feat: exit with error when `cmkOptions.enabled` is false
When css-modules-kit is disabled by configuration (`enabled: false`),
the codegen now throws CMKDisabledError and exits with code 1 instead
of silently proceeding. This applies to both normal and watch modes.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* update documentation
* add changelog
* update example
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,23 @@ In TypeScript, the `include`/`exclude` properties specify which `*.ts` files to
127
127
}
128
128
```
129
129
130
+
### `cmkOptions.enabled`
131
+
132
+
Type: `boolean`, Default: `true`
133
+
134
+
Enables or disables css-modules-kit. When set to `false`, codegen will exit with an error. Currently, both codegen and the ts-plugin will work even if this option is omitted, but in the future, they will not work unless this option is set to `true`. For more details, see [#289](https://github.com/mizdra/css-modules-kit/issues/289).
0 commit comments