Ionic 4.0.0 第二个 RC 版 4.0.0-rc.1 发布了,该版本对 项目构建速度进行了优化,对 Webpack 的相关配置做了调整,详细情况请查看更新说明。
Bug Fixes
angular: update @angular/router dependency (#16998) (76e9e02)
col: handle RTL offset-, pull-, and push-* (#16702) (6d6472b)
menu: swipe-back has higher priority (f05c599), closes #16864
overlays: make them hidden until presented (#16903) (302be53), closes #16685
popover: position properly in RTL / MD modes (#16745) (7846019)
ripple-effect: never capture click (#16955) (7ee8aa6), closes #16939
segment: update indicator and border based on theme (#16821) (74587db), closes #16820
select: interfaceOptions can customize mode (#16826) (1227d57), closes #16825
tab-button: allow standalone tab-button (#16905) (6ca7645), closes #16845
Features
radio-group: add missing implementation for property allowEmptySelection (#16880) (09726b0), closes #16841
react: add missing simple components to react. (#16836) (696f62c)
react: create initial portal implementation for overlay ctrls (#16830) (99bdd1f)
react: Initial implementations of controller required elements. (#16817) (e30c5f1)
Performance Improvements
BREAKING CHANGES
In order to speed up the build and reduce the main bundle size, we have moved the ionicons outside the webpack build pipeline.
Instead, a new copy task needs to be added to the angular.json
, specifically to the the "assets"
option of the "build"
.
angular.json
{ "projects": { "app": { "architect": { "build": { "options": { "assets": [ { "glob": "**/*", "input": "src/assets", "output": "assets" }, + { + "glob": "**/*.svg", + "input": "node_modules/ionicons/dist/ionicons/svg", + "output": "./svg" + }