1 Star 1 Fork 29

wliverpool/poster-design

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.ts 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
ShawnPhang 提交于 2023-07-20 18:48 . code: delete old data
/*
* @Author: ShawnPhang
* @Date: 2021-08-19 18:30:38
* @Description: Vite配置文件
* @LastEditors: ShawnPhang <site: book.palxp.com>
* @LastEditTime: 2023-07-20 18:48:25
*/
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import viteCompression from 'vite-plugin-compression'
import ElementPlus from 'unplugin-element-plus/vite'
const resolve = (...data: string[]) => path.resolve(__dirname, ...data)
// https://vitejs.dev/config/
export default defineConfig({
// base: '/web',
plugins: [
vue(),
viteCompression({
verbose: true,
disable: false,
threshold: 10240,
algorithm: 'gzip',
ext: '.gz',
}),
ElementPlus({
// options
}),
],
build: {
minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true,
},
},
},
resolve: {
alias: {
'@': resolve('src'),
'~data': resolve('src/assets/data'),
},
},
css: {
preprocessorOptions: {
less: {
modifyVars: {
color: `true; @import "./src/assets/styles/color.less";`,
},
},
},
},
define: {
'process.env': process.env,
},
server: {
hmr: { overlay: false },
// proxy: {
// '/api': {
// target: '',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, ''),
// },
// },
},
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wliverpool/poster-design.git
git@gitee.com:wliverpool/poster-design.git
wliverpool
poster-design
poster-design
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385