mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-05-10 18:25:03 -04:00
RenovateBot: Update dependency @fullhuman/postcss-purgecss to v7
This commit is contained in:
parent
07136c9f41
commit
0e08b440ea
3 changed files with 166 additions and 37 deletions
|
@ -1,12 +1,13 @@
|
|||
const path = require('path');
|
||||
const cssnano = require('cssnano')
|
||||
const purgecss = require('@fullhuman/postcss-purgecss')
|
||||
|
||||
module.exports = (ctx) => ({
|
||||
plugins: [
|
||||
require('tailwindcss')(path.resolve(__dirname, 'tailwind.config.js')),
|
||||
require('autoprefixer'),
|
||||
process.env.NODE_ENV === 'production' ? cssnano({ preset: 'default' }) : null,
|
||||
ctx.env === 'production' && require('@fullhuman/postcss-purgecss')({
|
||||
ctx.env === 'production' && purgecss.default({
|
||||
content: [
|
||||
path.resolve(__dirname, 'templates/**/*.html')
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue