1 Star 0 Fork 0

王燕婷/thingsboard_vue3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.js 810 Bytes
一键复制 编辑 原始数据 按行查看 历史
王燕婷 提交于 2024-09-18 09:24 +08:00 . 整体
import { fileURLToPath, URL } from 'node:url'
import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
import createVitePlugins from './vite/plugins'
// https://vitejs.dev/config/
export default defineConfig(({ mode, command }) => {
const env = loadEnv(mode, process.cwd(), '')
const { VITE_APP_ENV } = env
const isBuild = command === 'build';
return {
plugins: [
createVitePlugins(env, isBuild)
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
// 全局 css 注册
css: {
preprocessorOptions: {
scss: {
javascriptEnabled: true,
additionalData: `@import "src/styles/common/style.scss";`
}
}
},
server: {
port: '8091'
}
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wytwang/thingsboard_vue3.git
[email protected]:wytwang/thingsboard_vue3.git
wytwang
thingsboard_vue3
thingsboard_vue3
master

搜索帮助