Nuxt/examples/tailwindcss-purgecss/nuxt.config.js
Xin Du (Clark) 454a9af242
feat(webpack)!: update postcss to v8 (#9671)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-02-02 07:13:28 -08:00

28 lines
555 B
JavaScript

const path = require('path')
export default {
head: {
title: 'Nuxt Tailwind CSS + Purgecss',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: 'A static site powered by Nuxt'
}
]
},
css: ['~/assets/css/tailwind.css'],
build: {
postcss: {
postcssOptions: {
plugins: {
tailwindcss: path.join(__dirname, './tailwind.config.js')
}
}
}
}
}