websites/postcss.config.js

12 lines
364 B
JavaScript
Raw Normal View History

2023-06-15 12:17:18 +02:00
let tailwindConfig = process.env.HUGO_FILE_TAILWIND_CONFIG_JS || './tailwind.config.js';
const tailwind = require('tailwindcss')(tailwindConfig);
const autoprefixer = require('autoprefixer');
module.exports = {
// eslint-disable-next-line no-process-env
plugins: [
tailwind,
...(process.env.HUGO_ENVIRONMENT === 'production' ? [autoprefixer] : []),
],
};