mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-11-30 02:48:17 +08:00
fix
This commit is contained in:
parent
2eba6ca4f9
commit
0a2c082e44
@ -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')
|
||||
|
@ -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 })]
|
||||
}),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user