fix 修复 打包没有打包ie.html问题与一些警告处理

This commit is contained in:
疯狂的狮子Li 2026-06-26 13:19:37 +08:00
parent bcd4a55656
commit 4f5f4a7846
4 changed files with 11 additions and 1 deletions

View File

@ -9,7 +9,7 @@
<title>%VITE_APP_TITLE%</title> <title>%VITE_APP_TITLE%</title>
<!--[if lt IE 11]> <!--[if lt IE 11]>
<script> <script>
window.location.href = '/html/ie.html'; window.location.href = '/ie.html';
</script> </script>
<![endif]--> <![endif]-->
<style> <style>

View File

@ -11,6 +11,7 @@
}, },
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "vite build --mode production",
"build:dev": "vite build --mode development", "build:dev": "vite build --mode development",
"build:prod": "vite build --mode production", "build:prod": "vite build --mode production",
"dev": "vite serve --mode development", "dev": "vite serve --mode development",

View File

@ -15,6 +15,15 @@ export default defineConfig(({ mode, command }) => {
}, },
// https://cn.vitejs.dev/config/#resolve-extensions // https://cn.vitejs.dev/config/#resolve-extensions
plugins: createPlugins(env, command === 'build'), plugins: createPlugins(env, command === 'build'),
build: {
chunkSizeWarningLimit: 1500,
rolldownOptions: {
checks: {
invalidAnnotation: false,
pluginTimings: false
}
}
},
server: { server: {
host: '0.0.0.0', host: '0.0.0.0',
port: Number(env.VITE_APP_PORT), port: Number(env.VITE_APP_PORT),