大空间消毒机
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.

24 lines
568 B

2 years ago
  1. import { defineConfig } from 'vite'
  2. import { resolve } from 'path'
  3. import vue from '@vitejs/plugin-vue'
  4. // https://vitejs.dev/config/
  5. export default defineConfig({
  6. resolve: {
  7. alias: {
  8. '@': resolve(__dirname, 'src'),
  9. cpns: resolve(__dirname, 'src/components'),
  10. },
  11. extensions: ['.js', '.json', '.vue'],
  12. },
  13. plugins: [vue()],
  14. //配置sass
  15. css: {
  16. preprocessorOptions: {
  17. scss: {
  18. additionalData:
  19. '@import "./src/assets/scss/globalVar.scss";@import "./src/assets/scss/globalMixin.scss";',
  20. },
  21. },
  22. },
  23. })