How the scanner finds class names, glob syntax, extractor behavior and dynamic-name pitfalls.
Syntax#
nakshora.config.js
export default {
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx,vue}',
],
};Details & defaults#
The scanner walks every matched file and extracts candidate class names with a conservative tokenizer. Globs follow fast-glob syntax. Default: none — without content, the engine falls back to full mode. Performance tip: be specific (./src/**/*.tsx beats ./**/*).
Worked examples#
- Monorepo? Point at every package:
./packages/*/src/**/*.{ts,tsx} - Add
./node_modules/@acme/ui/dist/**/*.jswhen a component library ships Nakshora classes
Related options#
See the configuration/index|configuration hub for the full option table, and api/theme-resolution|theme resolution for how options merge.
