forked from drowl87/hextra_mirror

* update dev and build command chore: move contents to exampleSite chore: add configs to exampleSite chore: use tailwindcss/nesting * add postcss-import * move imports to the top chore: add config for theme dev chore: add compiled css chore: fix last updated issue chore: dont't ignore hugo_stats.json chore: update index page layout
13 lines
382 B
JavaScript
13 lines
382 B
JavaScript
let tailwindConfig = process.env.HUGO_FILE_TAILWIND_CONFIG_JS || './tailwind.config.js';
|
|
const tailwind = require('tailwindcss')(tailwindConfig);
|
|
const autoprefixer = require('autoprefixer');
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
require('postcss-import'),
|
|
require('@tailwindcss/nesting'),
|
|
tailwind,
|
|
...(process.env.HUGO_ENVIRONMENT === 'production' ? [autoprefixer] : [])
|
|
],
|
|
};
|