常见问题
问题1 背景颜色
@component-background
less全局定义变量背景一般设为此
background: @component-background;
问题 2 修改 axios 响应格式
tests/server/utils.ts
src/types/axios.d.ts
src/utils/http/axios/index.ts
src/enums/httpEnum.ts
构建&部署
构建
分析构建文件体积大小
打包分割
export default () => {
build: {
target: 'es2015',
outDir: OUTPUT_DIR,
rollupOptions: {
// external: 'mock/_util',
output: {
// 分割打包
manualChunks(id) {
if (id.includes('node_modules')) {
return id.toString().split('node_modules/')[1].split('/')[0].toString();
}
},
},
},
};
};