1 Star 0 Fork 0

luopengtao/logseq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
postcss.config.js 726 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ben Yorke 提交于 2023-06-01 22:38 +08:00 . Inital radix reskin
const or = (...args) => {
const variableNames = args.filter(x => x.startsWith('--'))
const initialValue = args.filter(x => !x.startsWith('--'))[0]
return variableNames.reduceRight((memo, current) => {
if (memo && current) {
return `var(${current.trim()}, ${memo})`
} else if (current) {
return `var(${current.trim()})`
} else if (memo) {
return memo
}
}, initialValue)
}
module.exports = {
plugins: {
'autoprefixer': {},
'postcss-import-ext-glob': {},
'postcss-import': {},
'postcss-functions': { functions: { or } },
'tailwindcss/nesting': 'postcss-nested',
tailwindcss: {},
...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/luopengtao/logseq.git
git@gitee.com:luopengtao/logseq.git
luopengtao
logseq
logseq
master

搜索帮助