This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
site/postcss.config.js

15 lines
308 B
JavaScript
Raw Permalink Normal View History

const cssnano = require('cssnano')({
preset: 'default'
})
module.exports = {
from: 'src/css/index.css',
to: 'dist/css/index.css',
plugins: [
require('postcss-import'),
require('tailwindcss'),
require('autoprefixer'),
...(process.env.NODE_ENV === 'production' ? [cssnano] : [])
]
}