1 Star 0 Fork 55

yinyunpeng/Vue3.x 网易云音乐_PC音乐播放器

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.js 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
AutoImport({
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
}),
],
css: {
preprocessorOptions: {
less: {
modifyVars: {
hack: `true; @import (reference) "${resolve('src/assets/less/main.less')}";`,
},
javascriptEnabled: true,
}
}
},
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
'@components': resolve(__dirname, 'src/components'),
'@apis': resolve(__dirname, 'src/apis'),
'@utils': resolve(__dirname, 'src/utils'),
'@plugins': resolve(__dirname, 'src/plugins'),
'@assets': resolve(__dirname, 'src/assets'),
'@views': resolve(__dirname, 'src/views'),
}
},
server: {
port: 9999,
host: '0.0.0.0',
https: false
}
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yinyunpeng/vue3-music.git
[email protected]:yinyunpeng/vue3-music.git
yinyunpeng
vue3-music
Vue3.x 网易云音乐_PC音乐播放器
master

搜索帮助