技術文章 - CS298706

Custom .css files ignore @import in ThingWorx Extension SDK

修改時間: 28-Dec-2018   


套用到

  • ThingWorx Platform 8.0 to 8.3

描述

  • Custom .css files ignore @import in ThingWorx Extension SDK
  • @import can be used e.g. to include custom fonts, i.e. Google Fonts in Custom Widgets
@import url('https://fonts.googleapis.com/css?family=Roboto');
  • After importing an extension into ThingWorx with @import tags the URL in the CombinedExtensions.css is pointing to a relative path to the extension instead, i.e.
@import url(../../Common/extensions/MyExtensionPackage/ui/Package/'https://fonts.googleapis.com/css?family=Roboto');
This is a PDF version of Article 298706 and may be out of date. For the latest version CS298706