forked from drowl87/hextra_mirror
chore: move content to exampleSite
* 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
This commit is contained in:
@ -1,8 +1,12 @@
|
||||
let tailwindConfig = process.env.HUGO_FILE_TAILWIND_CONFIG_JS || './tailwind.config.js';
|
||||
const tailwind = require('tailwindcss')(tailwindConfig);
|
||||
const autoprefixer = require('autoprefixer');
|
||||
const nested = require('postcss-nested')
|
||||
|
||||
module.exports = {
|
||||
plugins: [tailwind, nested, ...(process.env.HUGO_ENVIRONMENT === 'production' ? [autoprefixer] : [])], // add nesting to the plugins array
|
||||
plugins: [
|
||||
require('postcss-import'),
|
||||
require('@tailwindcss/nesting'),
|
||||
tailwind,
|
||||
...(process.env.HUGO_ENVIRONMENT === 'production' ? [autoprefixer] : [])
|
||||
],
|
||||
};
|
||||
|
Reference in New Issue
Block a user