辅助加样
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.

27 lines
606 B

2 years ago
2 years ago
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. server: {
  14. host: '0.0.0.0',
  15. },
  16. plugins: [vue()],
  17. //配置sass
  18. css: {
  19. preprocessorOptions: {
  20. scss: {
  21. additionalData:
  22. '@import "./src/assets/scss/globalVar.scss";@import "./src/assets/scss/globalMixin.scss";',
  23. },
  24. },
  25. },
  26. })