Closed zyplayer closed 2 years ago
虽然感觉是我自己的问题,但我实在想不出为什么了,,不知道大佬能不能抽空看看~~ 不行的话就只有等他编译久一点了,,
vite.config.js
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
// https://vitejs.dev/config/
export default defineConfig({
server: {
host: 'local.zyplayer.com',
port: 80,
// https: true
},
plugins: [
vue(),
AutoImport({
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
}),
],
css: {
// https://github.com/vitejs/vite/issues/5833
postcss: {
plugins: [
{
postcssPlugin: "internal:charset-removal",
AtRule: {
charset: atRule => {
if (atRule.name === "charset") {
atRule.remove()
}
}
}
}
]
}
},
build: {
emptyOutDir: true,
cssCodeSplit: false,
}
})
摸摸哒,原来问题出在隔壁老王那里~
Element Plus version
1.2.0-beta.6
OS/Browsers version
win10
Vue version
3.2.23
Reproduction Link
https://gitee.com/zyplayer/element-plus-bug-report github被墙了clone不下来项目,没办法提交
Steps to reproduce
执行:npm run build 会在rendering chunks (3)...的时候卡很久 修改:src/views/cascader-build-bug.vue,去掉 el-cascader 组件就不卡了,感觉很奇怪,,,
What is Expected?
npm run build 编译的时候不卡顿
What is actually happening?
要在那里卡顿10多分钟才编译完成