css.ts 459 B

123456789101112131415161718
  1. /**
  2. * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
  3. * No deletion without permission, or be held responsible to law.
  4. * @author ThinkGem
  5. */
  6. import type { CSSOptions } from 'vite';
  7. import { generateModifyVars } from '../theme/modifyVars';
  8. export function createCSSOptions(): CSSOptions {
  9. return {
  10. preprocessorOptions: {
  11. less: {
  12. modifyVars: generateModifyVars(),
  13. javascriptEnabled: true,
  14. },
  15. },
  16. };
  17. }