windi.config.ts 552 B

1234567891011121314151617181920
  1. // eslint-disable-next-line
  2. import { defineConfig } from 'windicss/helpers';
  3. console.log(
  4. '\x1B[0;37;44m INFO \x1B[0m',
  5. '\x1B[0;;34m ' +
  6. `读取了: ${__filename.slice(__dirname.length + 1)}` +
  7. ' \x1B[0m'
  8. );
  9. export default defineConfig({
  10. darkMode: 'class', // or 'media'
  11. extract: {
  12. // A common use case is scanning files from the root directory
  13. include: ['**/*.{vue,html,jsx,tsx}'],
  14. // if you are excluding files, make sure you always include node_modules and .git
  15. exclude: ['node_modules', '.git', 'dist'],
  16. },
  17. });