pref:统一打包命令,修改本地运行配置

fix/0714-ch
ch 2 years ago
parent e032aa48cc
commit d1a65b086d

@ -1,5 +1,5 @@
VITE_BASE_URL=/api
VITE_BASE_URL=https://k8s-horse-gateway.mashibing.cn
VITE_SOCKET_URL=wss://k8s-horse-gateway.mashibing.cn/ws
#VITE_SOCKET_URL=ws://192.168.10.93:8090/ws
VITE_REQUEST_TIMEOUT=5000
VITE_BROWSER_URL = https://k8s-shop-pc.mashibing.cn
VITE_BROWSER_URL = https://k8s-shop-pc.mashibing.cn
VITE_REQUEST_TIMEOUT=5000

@ -0,0 +1,4 @@
VITE_BASE_URL=https://you-gateway.mashibing.com
VITE_SOCKET_URL=wss://you-gateway.mashibing.com/ws
VITE_REQUEST_TIMEOUT=20000
VITE_BROWSER_URL = https://you.mashibing.com

@ -1,4 +1,4 @@
VITE_BASE_URL=https://k8s-horse-gateway.mashibing.cn/
VITE_BASE_URL=https://k8s-horse-gateway.mashibing.cn
VITE_SOCKET_URL=wss://k8s-horse-gateway.mashibing.cn/ws
VITE_REQUEST_TIMEOUT=20000
VITE_BROWSER_URL = https://k8s-shop-pc.mashibing.cn

61
components.d.ts vendored

@ -0,0 +1,61 @@
// generated by unplugin-vue-components
// We suggest you to commit this file into source control
// Read more: https://github.com/vuejs/vue-next/pull/3399
declare module 'vue' {
export interface GlobalComponents {
ElArea: typeof import('./src/components/ElArea.vue')['default']
ElAvatar: typeof import('element-plus/es')['ElAvatar']
ElBadge: typeof import('element-plus/es')['ElBadge']
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
ElButton: typeof import('./src/components/extra/ElButton.vue')['default']
ElCard: typeof import('element-plus/es')['ElCard']
ElCascader: typeof import('./src/components/extra/ElCascader.vue')['default']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCheckboxGroup: typeof import('./src/components/extra/ElCheckboxGroup.vue')['default']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
ElDialog: typeof import('./src/components/extra/ElDialog.vue')['default']
ElDropdown: typeof import('./src/components/extra/ElDropdown.vue')['default']
ElEditor: typeof import('./src/components/ElEditor.vue')['default']
ElEmpty: typeof import('element-plus/es')['ElEmpty']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElIcon: typeof import('./src/components/extra/ElIcon.vue')['default']
ElImage: typeof import('./src/components/extra/ElImage.vue')['default']
ElInput: typeof import('./src/components/extra/ElInput.vue')['default']
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElRadio: typeof import('element-plus/es')['ElRadio']
ElRadioGroup: typeof import('./src/components/extra/ElRadioGroup.vue')['default']
ElRate: typeof import('element-plus/es')['ElRate']
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSelect: typeof import('./src/components/extra/ElSelect.vue')['default']
ElStep: typeof import('element-plus/es')['ElStep']
ElSteps: typeof import('element-plus/es')['ElSteps']
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
ElSwitch: typeof import('./src/components/extra/ElSwitch.vue')['default']
ElTable: typeof import('./src/components/extra/ElTable.vue')['default']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTabPane: typeof import('element-plus/es')['ElTabPane']
ElTabs: typeof import('element-plus/es')['ElTabs']
ElTag: typeof import('element-plus/es')['ElTag']
ElTimeline: typeof import('element-plus/es')['ElTimeline']
ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
ElTooltip: typeof import('./src/components/extra/ElTooltip.vue')['default']
ElTree: typeof import('element-plus/es')['ElTree']
ElUpload: typeof import('element-plus/es')['ElUpload']
ElUploadFile: typeof import('./src/components/ElUploadFile.vue')['default']
ElUploadImage: typeof import('./src/components/ElUploadImage.vue')['default']
Loading: typeof import('element-plus/es')['ElLoadingDirective']
TableList: typeof import('./src/components/TableList.vue')['default']
}
}
export { }

@ -7,7 +7,10 @@
"private": true,
"version": "0.0.1",
"scripts": {
"dev": "vite",
"server": "vite",
"server:test": "vite --mode test",
"server:bate": "vite --mode bate",
"server:prod": "vite --mode prod",
"build:test": "vite build --mode test",
"build:beta": "vite build --mode beta",
"build:prod": "vite build --mode prod",

@ -16,12 +16,12 @@ export default (configEnv) => {
return {
server: {
host: '0.0.0.0',
port: 3000,
port: 3001,
open: false,
proxy: {
'/api': {
target: 'https://k8s-horse-gateway.mashibing.cn/', // 测试地址
// target: 'https://you-gateway.mashibing.com', // 生产环境
// target: 'https://k8s-horse-gateway.mashibing.cn/', // 测试地址
target: 'https://you-gateway.mashibing.com', // 生产环境
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
@ -67,13 +67,13 @@ export default (configEnv) => {
dts: 'src/auto-imports.d.ts',
}),
Components({
dirs: ['src/components'],
extensions: ['vue', 'jsx', 'tsx', 'js', 'ts'],
deep: true,
// dirs: ['src/components'],
// extensions: ['vue', 'jsx', 'tsx', 'js', 'ts'],
// deep: true,
resolvers: [ElementPlusResolver()],
dts: 'src/components.d.ts',
include: [/\.tsx$/, /\.jsx$/, /\.ts$/, /\.js$/, /\.vue$/, /\.vue\?vue/],
exclude: [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/],
// dts: 'src/components.d.ts',
// include: [/\.tsx$/, /\.jsx$/, /\.ts$/, /\.js$/, /\.vue$/, /\.vue\?vue/],
// exclude: [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/],
}),
removeConsole(),
globalStyle({

Loading…
Cancel
Save