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.
28 lines
622 B
28 lines
622 B
import { defineConfig } from 'vite'
|
|
import { resolve } from 'path'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, 'src'),
|
|
cpns: resolve(__dirname, 'src/components'),
|
|
},
|
|
extensions: ['.js', '.json', '.vue'],
|
|
},
|
|
plugins: [vue()],
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 5173,
|
|
},
|
|
//配置sass
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
additionalData:
|
|
'@import "./src/assets/scss/globalVar.scss";@import "./src/assets/scss/globalMixin.scss";',
|
|
},
|
|
},
|
|
},
|
|
})
|