1 Star 0 Fork 0

chyco / vite-vue2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.base.config.js 480 Bytes
一键复制 编辑 原始数据 按行查看 历史
chyco 提交于 2024-04-24 22:52 . 配置路劲别名alias
const path = require('path')
import { defineConfig } from 'vite'
import vue2 from '@vitejs/plugin-vue2'
export default defineConfig({
plugins: [vue2()],
css: {
preprocessorOptions: {
less: {
math: 'always', // 开启数学计算
javascriptEnabled: true, // 开启less中的js计算
globalVars: {
blue: 'skyblue',
},
},
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
})
JavaScript
1
https://gitee.com/chyco/vite-vue2.git
git@gitee.com:chyco/vite-vue2.git
chyco
vite-vue2
vite-vue2
master

搜索帮助