mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-08-09 14:42:21 -04:00
purge and nanoify
This commit is contained in:
parent
8bb860a865
commit
524e055e8c
4 changed files with 7504 additions and 2 deletions
|
@ -1,9 +1,11 @@
|
|||
const path = require('path');
|
||||
const cssnano = require('cssnano')
|
||||
|
||||
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')({
|
||||
content: [
|
||||
path.resolve(__dirname, 'templates/**/*.html')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue