fix: 变量名调整

This commit is contained in:
zenoven 2022-11-30 12:47:36 +08:00
parent 3cc5965958
commit 8992551f7d
3 changed files with 4 additions and 4 deletions

View File

@ -4,9 +4,9 @@ const path = require('path')
const assetsPath = path.join(__dirname, '../src/assets')
const scssVariablePath = path.join(assetsPath, 'styles/variable.scss')
const fontsPath = path.join(assetsPath, 'fonts')
const scssFontListVar = '$font-list'
const scssFontListVar = '$fontList'
// scss 文件中 $font-list 变量替换
// scss 文件中 $fontList 变量替换
const replaceSCSSFile = (names) => {
fs.readFile(scssVariablePath, 'utf-8', (errs, content) => {
if (errs) {

View File

@ -1,4 +1,4 @@
@each $font in $font-list {
@each $font in $fontList {
@font-face {
font-display: swap;
font-family: $font;

View File

@ -11,4 +11,4 @@ $transitionDelayFast: .1s;
$transitionDelaySlow: .3s;
$borderRadius: 2px;
$font-list: '仓耳小丸子', '优设标题黑', '字制区喜脉体', '峰广明锐体', '摄图摩登小方体', '站酷快乐体', '素材集市康康体', '素材集市酷方体', '途牛类圆体', '锐字真言体';
$fontList: '仓耳小丸子', '优设标题黑', '字制区喜脉体', '峰广明锐体', '摄图摩登小方体', '站酷快乐体', '素材集市康康体', '素材集市酷方体', '途牛类圆体', '锐字真言体';