【发布时间】:2019-01-24 09:38:06
【问题描述】:
我正在尝试使用 Angular 6 的 stylePreprocessorOptions,所以我可以简单地 @import 'app' 将品牌/其他共享样式导入组件。
我的 nativescript 项目存在于 NxWorkspace 设置中,该设置本身包含一个 angular.json。
@nativescript/schematics 的文档说要在 NativeScript 项目根目录中生成一个新的angular.json 文件,我已经完成了,但我还在我的 NxWorkspace 根目录的 angular.json 文件中放置了定义的克隆,因为不清楚使用的我。
angular.json 文件的内容可以在这里找到:https://hastebin.com/zajiviqoyi.json
当尝试使用@import "app" 时,它告诉我它无法找到相对于我已经完成导入行的文件的app。在我的其他应用设置中,但本实例中的 NativeScript 似乎忽略了我的配置。
【问题讨论】:
标签: typescript nativescript angular6 nativescript-angular angular-schematics