1 Star 0 Fork 13

Tim5566/钻石收银 IPad 版本 Diamond Web3 POS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.js 2.06 KB
一键复制 编辑 原始数据 按行查看 历史
Vica 提交于 2024-06-06 11:21 . fix some of features
import { resolve } from 'path';
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// import eslint from 'vite-plugin-eslint';
import vueJsx from '@vitejs/plugin-vue-jsx';
import { vitePluginForArco } from '@arco-plugins/vite-vue'
import configCompressPlugin from './plugin/compress';
import configVisualizerPlugin from './plugin/visualizer';
// import configArcoResolverPlugin from './plugin/arcoResolver';
// import configImageminPlugin from './plugin/imagemin';
// const isDevelopment = import.meta.env.MODE === 'development'
// https://vitejs.dev/config/
export default defineConfig({
// mode: 'development',
server: {
host: '0.0.0.0',
port: 6100,
proxy: {
'/devApi': {
target: 'http://localhost:3000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/devApi/, ''),
}
},
open: false,
},
plugins: [
vue(),
vueJsx(),
vitePluginForArco({
style: 'css'
}),
// isDevelopment ? eslint({
// cache: false,
// include: ['src/**/*.js', 'src/**/*.jsx', 'src/**/*.vue'],
// exclude: ['node_modules'],
// }) : null,
configCompressPlugin('gzip'),
configVisualizerPlugin(),
// configArcoResolverPlugin(),
// configImageminPlugin(),
],
resolve: {
alias: [
{
find: '@',
replacement: resolve(__dirname, './src'),
},
{
find: 'assets',
replacement: resolve(__dirname, './src/assets'),
},
{
find: 'vue-i18n',
replacement: 'vue-i18n/dist/vue-i18n.cjs.js', // Resolve the i18n warning issue
},
{
find: 'vue',
replacement: 'vue/dist/vue.esm-bundler.js', // compile template
},
],
extensions: ['.ts', '.js'],
},
css: {
postcss: './postcss.config.js', // 指定 PostCSS 配置文件路径
preprocessorOptions: {
less: {
modifyVars: {
hack: `true; @import (reference) "${resolve(
'src/assets/style/breakpoint.less'
)}";`,
},
javascriptEnabled: true,
},
},
},
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/TimGong/diamond-pos.git
git@gitee.com:TimGong/diamond-pos.git
TimGong
diamond-pos
钻石收银 IPad 版本 Diamond Web3 POS
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385