vite.themes.config.ts 954 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { defineConfig } from 'vite';
  2. const isProd = process.env.NODE_ENV === 'production';
  3. // https://vitejs.dev/config/
  4. export default defineConfig({
  5. build: {
  6. outDir: 'dist/themes',
  7. manifest: true,
  8. rollupOptions: {
  9. input: [
  10. '/src/styles/antarctic.scss',
  11. '/src/styles/blackboard.scss',
  12. '/src/styles/christmas.scss',
  13. '/src/styles/default.scss',
  14. '/src/styles/fire-red.scss',
  15. '/src/styles/future.scss',
  16. '/src/styles/halloween.scss',
  17. '/src/styles/hufflepuff.scss',
  18. '/src/styles/island.scss',
  19. '/src/styles/jade-green.scss',
  20. '/src/styles/kibela.scss',
  21. '/src/styles/mono-blue.scss',
  22. '/src/styles/nature.scss',
  23. '/src/styles/spring.scss',
  24. '/src/styles/wood.scss',
  25. ],
  26. output: {
  27. assetFileNames: isProd
  28. ? undefined
  29. : 'assets/[name].[ext]', // not attach hash
  30. },
  31. },
  32. },
  33. });