cssAdapter
To change the value of the sass or less variable
用于改变 scss、less、sass等样式文件的变量。
用法
const StyleFile = const fs = const path = const style = language: 'scss' from: 'test/scssTheme/index.scss' to: 'test/scssTheme/dist/theme.css' let styleCss = fslet variable = '$--color-white': '#fff' { await style let renderCssResult = await style // assetsPath 生成静态资源文件目录 const urlOption = filter: /\.ttf$/ url: 'copy' useHash: true assetsPath: path filter: /\.woff$/ url: 'copy' useHash: true assetsPath: path let rs = await style fs}