1. 程式人生 > >Ionic 4.0.0-rc.1 釋出,混合應用的前端開發框架

Ionic 4.0.0-rc.1 釋出,混合應用的前端開發框架

  

Ionic 4.0.0 第二個 RC 版 4.0.0-rc.1 釋出了,該版本對 專案構建速度進行了優化,對 Webpack 的相關配置做了調整,詳細情況請檢視更新說明。

Bug Fixes

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"
+             }