# xhg-psm **Repository Path**: microjan/xhg-psm ## Basic Information - **Project Name**: xhg-psm - **Description**: No description available - **Primary Language**: TypeScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-11-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 小黄狗价格体系管理系统 一套基于 [ALAIN](https://cipchk.github.io/ng-alain/) 的企业后台管理系统,用于管理公司业务中的价格。 > how to start? * npm install * ng serve (也可热启动:npm run hmr) ### 帮助文档 + [文档](http://ng-alain.com) + [@delon](https://github.com/cipchk/delon) ### 系统版本 | 时间 | 版本 | 下一个版本 | | ------------ |:-----:|:----------:| | 2018/11/19 | v1.0 | v1.5 | | 2018/12/26 | v1.5 | v1.6 | | 2019/11/22 | v1.6 | v2.0 | ### 已知问题 ### 优化 可以先从减小代码体积入手,分为JavaScript脚本文件和CSS文件。 > 注意:始终以业务优先,优化为后的准则。 #####CSS > 你可以在项目的 theme.less 中设置为 false,可以有效减少 css 文件大小。 ``` // 不需要 masonry 样式 @masonry-enabled: false ``` #####JS 项目默认开启了对 IE 的支持,这给包体及样式增加了一定大小,倘若你很在意并且不需要 IE10 及以下的版本支持的话,可以调整两项配置: 1. 在 package.json 加上 browserslist 节点减少 flexbox 前缀样式从而减少包体大小: ``` "browserslist": [ "last 2 versions", "not ie <= 10", "not ie_mob <= 10" ] ``` 2. 关闭 src/polyfills.ts 下 IE9, IE10 and IE11 requires all of the following polyfills. 节点的内容,可以减少 polyfills.js 的包体大小。