1 Star 0 Fork 0

苏洋/animate.css

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
postcss.config.js 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
Waren Gonzaga 提交于 2021-10-08 18:58 . License Update (#1374)
const fs = require('fs');
const {homepage, version, author, animateConfig} = JSON.parse(fs.readFileSync('package.json'));
const header = `
@charset "UTF-8";
/*!
* animate.css - ${homepage}
* Version - ${version}
* Licensed under the Hippocratic License 2.1 - http://firstdonoharm.dev
*
* Copyright (c) ${new Date().getFullYear()} ${author.name}
*/
`;
module.exports = (ctx) => {
const prefix = ctx.env === 'compat' ? '' : animateConfig.prefix;
const devMessage = `🎉🎉🎉🎉 \nanimate.css ${ctx.env} build was compiled sucessfully! \n`;
console.log(devMessage);
return {
map: ctx.options.map,
parser: ctx.options.parser,
plugins: {
'postcss-import': {root: ctx.file.dirname},
'postcss-prefixer': {
prefix,
ignore: [/\[class\*=.*\]/],
},
'postcss-preset-env': {
autoprefixer: {
cascade: false,
},
features: {
'custom-properties': true,
},
},
cssnano: ctx.env === 'production' || ctx.env === 'compat' ? {} : false,
'postcss-header': {
header,
},
},
};
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/suyang600/animate.css.git
git@gitee.com:suyang600/animate.css.git
suyang600
animate.css
animate.css
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385