首页 > 解决方案 > 离子生成页面 - 跳过模块文件

问题描述

ionic g page SomePage还会创建 some-page.module.ts 文件。我如何防止它这样做?

我用离子 4

标签: ionic-framework

解决方案


在 Ionic v3 中,可以使用 --no-module 标志来跳过 module.ts 文件的创建。

尝试执行:

ionic g page SomePage --no-module

希望这可以帮助!


推荐阅读