refactor: 优化项目配置与代码冗余清理
1. 新增components-diy占位组件与注入脚本,按需注入分包占位配置 2. 开启postcss编译优化 3. 移除多处重复的图标字体全局样式导入
This commit is contained in:
21
components-diy/placeholder/index.vue
Normal file
21
components-diy/placeholder/index.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<!-- DIY 占位页(不可达,仅用于让 components-diy 成为微信真分包) -->
|
||||
<view class="placeholder"></view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.placeholder {
|
||||
padding: 40rpx;
|
||||
color: #999;
|
||||
text-align: center;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user