招聘网页
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vite.config.ts 454B

1 anno fa
1 anno fa
1 anno fa
1 anno fa
12345678910111213141516171819202122
  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. import path from 'path'
  4. const TimeStamp = new Date().getTime();
  5. export default defineConfig({
  6. plugins: [vue()],
  7. resolve: {
  8. alias: {
  9. '@': path.resolve(__dirname, 'src'),
  10. }
  11. },
  12. build: {
  13. rollupOptions: {
  14. output: {
  15. entryFileNames: `[name].${TimeStamp}.js`,
  16. chunkFileNames: `[name].${TimeStamp}.js`,
  17. assetFileNames: `[name].${TimeStamp}.js`,
  18. },
  19. },
  20. }
  21. })