Merge pull request 'test : 测试ci/cd' (#1043) from master into prod

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/1043
This commit is contained in:
2025-06-13 06:39:59 +00:00
2 changed files with 8 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ steps:
- name: build-package
image: node:16.20.0
image: node:18.17.1
volumes:
- name: cache
path: /drone/src/node_modules

View File

@@ -9,7 +9,7 @@ import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import Inspect from 'vite-plugin-inspect'
import viteSvgIcons from 'vite-plugin-svg-icons'
import path from 'path'
import path from 'node:path'
// https://vitejs.dev/config/
export default defineConfig({
@@ -43,7 +43,7 @@ export default defineConfig({
}),
viteSvgIcons({
// 指定需要缓存的图标文件夹
iconDirs: [path.resolve(__dirname, 'src/assets/svg')],
iconDirs: [path.resolve(process.cwd(), 'src/assets/svg')],
// 指定symbolId格式
symbolId: 'icon-[dir]-[name]',
}),
@@ -54,6 +54,7 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
build: {
minify: 'esbuild',
terserOptions: {
@@ -104,5 +105,8 @@ export default defineConfig({
// changeOrigin: true,
// }
}
}
},
esbuild: {
target: 'esnext', // 强制使用最新 ES 模块
},
})