mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 变量名调整
This commit is contained in:
parent
3cc5965958
commit
8992551f7d
@ -4,9 +4,9 @@ const path = require('path')
|
|||||||
const assetsPath = path.join(__dirname, '../src/assets')
|
const assetsPath = path.join(__dirname, '../src/assets')
|
||||||
const scssVariablePath = path.join(assetsPath, 'styles/variable.scss')
|
const scssVariablePath = path.join(assetsPath, 'styles/variable.scss')
|
||||||
const fontsPath = path.join(assetsPath, 'fonts')
|
const fontsPath = path.join(assetsPath, 'fonts')
|
||||||
const scssFontListVar = '$font-list'
|
const scssFontListVar = '$fontList'
|
||||||
|
|
||||||
// scss 文件中 $font-list 变量替换
|
// scss 文件中 $fontList 变量替换
|
||||||
const replaceSCSSFile = (names) => {
|
const replaceSCSSFile = (names) => {
|
||||||
fs.readFile(scssVariablePath, 'utf-8', (errs, content) => {
|
fs.readFile(scssVariablePath, 'utf-8', (errs, content) => {
|
||||||
if (errs) {
|
if (errs) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@each $font in $font-list {
|
@each $font in $fontList {
|
||||||
@font-face {
|
@font-face {
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-family: $font;
|
font-family: $font;
|
||||||
|
@ -11,4 +11,4 @@ $transitionDelayFast: .1s;
|
|||||||
$transitionDelaySlow: .3s;
|
$transitionDelaySlow: .3s;
|
||||||
|
|
||||||
$borderRadius: 2px;
|
$borderRadius: 2px;
|
||||||
$font-list: '仓耳小丸子', '优设标题黑', '字制区喜脉体', '峰广明锐体', '摄图摩登小方体', '站酷快乐体', '素材集市康康体', '素材集市酷方体', '途牛类圆体', '锐字真言体';
|
$fontList: '仓耳小丸子', '优设标题黑', '字制区喜脉体', '峰广明锐体', '摄图摩登小方体', '站酷快乐体', '素材集市康康体', '素材集市酷方体', '途牛类圆体', '锐字真言体';
|
Loading…
x
Reference in New Issue
Block a user