After the introduction of ng-zorro-antd into angular6, the hot update card has been around 92% for a long time, and the module packaged out is about 5m. Is there any way to optimize it?

import { NgZorroAntdModule } from "ng-zorro-antd";

mports: [
        NgZorroAntdModule
    ],

it"s just configured according to the official website, but it"s too big. Have you ever met a great god?


explain the reason why the packaged file is large: extract the business code from the app.module.ts and introduce the business code in the route by lazy loading. As for the problem of slow refresh in development, no solution has been found for the time being.

Menu