2023-07-19 22:11:34 +01:00
|
|
|
let tailwindConfig = process.env.HUGO_FILE_TAILWIND_CONFIG_JS || './tailwind.config.js';
|
|
|
|
const tailwind = require('tailwindcss')(tailwindConfig);
|
|
|
|
const autoprefixer = require('autoprefixer');
|
2023-07-27 00:05:47 +01:00
|
|
|
const nested = require('postcss-nested')
|
2023-07-19 22:11:34 +01:00
|
|
|
|
|
|
|
module.exports = {
|
2023-07-27 00:05:47 +01:00
|
|
|
plugins: [tailwind, nested, ...(process.env.HUGO_ENVIRONMENT === 'production' ? [autoprefixer] : [])], // add nesting to the plugins array
|
2023-07-19 22:11:34 +01:00
|
|
|
};
|