【问题标题】:What's the different between styles and stylePreprocessorOptions in angular.json in a Angular projectAngular 项目中 angular.json 中的样式和 stylePreprocessorOptions 有什么区别
【发布时间】:2019-10-20 15:51:33
【问题描述】:

我不确定是否理解 angular.json 中 styles 数组和 stylePreprocessorOptions > includePaths 数组之间的区别。

谁能启发我?

谢谢! :)

【问题讨论】:

    标签: javascript angular typescript sass single-page-application


    【解决方案1】:

    styles :要包含在构建中的全局样式。因此,您的应用程序将具有多种样式,并且您可以导入到此数组中,以便在 Angular 构建您的代码时,您将拥有整个应用程序的全局样式

    stylePreprocessorOptions:传递给样式预处理器的选项。这将允许您为 scss、sass 或更少添加自定义路径

    你可以看到配置here

    【讨论】:

      猜你喜欢
      • 2021-12-03
      • 2011-08-18
      • 2018-12-18
      • 2023-03-10
      • 1970-01-01
      • 2017-01-21
      • 2012-01-29
      • 2018-11-01
      相关资源
      最近更新 更多