在manifest.json中引用scss变量

时间:2019-02-12 12:11:57

标签: json angular sass

我正在使用Angular开发PWA。我正在使用集中式颜色文件,将应用程序的主要和辅助颜色存储在scss变量中。

color.palette.scss:

// other code
$treadwill-pre-login-primary: #2a3b3d;
$treadwill-pre-login-app-foreground: #f4bb56;
// other code

我想从manifest.json文件中引用这些变量。

manifest.json:

{
 ..
 "background_color": $treadwill-pre-login-app-foreground,
 "theme_color": $treadwill-pre-login-primary
 ..
}

相对文件结构:

|
-- ... 
-- /app
--index.html
--color.palette.scss
--manifest.json
-- ...

有办法吗?

0 个答案:

没有答案
相关问题