1 Star 0 Fork 313

薄校长/HasChat

forked from howcode/HasChat 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
vite.config.ts 778 Bytes
Copy Edit Raw Blame History
import { defineConfig } from 'vite'
import path from "path"
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
base: "/",
root: process.cwd(),
resolve: {
alias: {
"@": path.resolve(__dirname, 'src'), // 路径别名
},
extensions: ['.js', '.json', '.ts'] // 使用路径别名时想要省略的后缀名,可以自己 增减
},
assetsInclude: ["./src/assets"],
plugins: [vue()],
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "@/assets/css/common.less";`,
},
less: {
javascriptEnabled: true,
modifyVars: {
hack: `true; @import (reference) "${path.resolve('src/assets/style/variables.less')}";`
}
}
}
},
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/ryzecode/has-chat.git
git@gitee.com:ryzecode/has-chat.git
ryzecode
has-chat
HasChat
master

Search