28 Star 158 Fork 48

懂了以后 / element-pro

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
postcss.config.js 553 Bytes
一键复制 编辑 原始数据 按行查看 历史
懂了以后 提交于 2020-06-07 10:56 . modify config
const IS_PROD = ["production", "prod"].includes(process.env.NODE_ENV);
const purgecss = require('@fullhuman/postcss-purgecss')({
content: [
'./src/**/*.html',
'./src/**/*.vue',
'./src/**/*.jsx',
],
// Include any special characters you're using in this regular expression
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
})
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
...IS_PROD
? [purgecss]
: []
]
}
JavaScript
1
https://gitee.com/wangyanghub/element-pro.git
git@gitee.com:wangyanghub/element-pro.git
wangyanghub
element-pro
element-pro
master

搜索帮助