This commit is contained in:
bwcx_jzy 2024-01-16 17:18:26 +08:00
parent 2eba6ca4f9
commit 0a2c082e44
No known key found for this signature in database
GPG Key ID: E187D6E9DDDE8C53
2 changed files with 2 additions and 9 deletions

View File

@ -1,7 +1,6 @@
// import '@/assets/style.css'
// import '@/assets/reset.less'
import App from './App.vue'
import Antd from 'ant-design-vue'
import router from './router'
// import 'ant-design-vue/dist/antd.css'
import '@/router/auth'
@ -9,6 +8,6 @@ const pinia = createPinia()
const app = createApp(App)
app.use(Antd).use(router).use(pinia)
app.use(router).use(pinia)
app.mount('#app')

View File

@ -57,12 +57,6 @@ export default defineConfig(({ mode }: ConfigEnv) => {
outDir: '../modules/server/src/main/resources/dist',
rollupOptions: {
output: {
// 最小化拆分包
manualChunks(id) {
if (id.includes('node_modules')) {
return id.toString().split('node_modules/')[1].split('/')[0].toString()
}
},
// 用于从入口点创建的块的打包输出格式[name]表示文件名,[hash]表示该文件内容hash值
entryFileNames: 'assets/js/[name].[hash].js', // 用于命名代码拆分时创建的共享块的输出命名
chunkFileNames: 'assets/js/[name].[hash].js', // 用于输出静态资源的命名,[ext]表示文件扩展名
@ -100,7 +94,7 @@ export default defineConfig(({ mode }: ConfigEnv) => {
}),
Components({
dts: 'src/d.ts/components.d.ts',
//ant-design-vue importStyle = false 样式就没了
//ant-design-vue
resolvers: [AntDesignVueResolver({ importStyle: false, resolveIcons: true })]
}),