代码拉取完成,页面将自动刷新
同步操作将从 Vica/稻客收银系统-钻石收银系统-珠宝收银POS-连锁门店收银系统前端 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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,
},
},
},
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。