vue.js|vue3.x兼容tailwindcss(截至发帖)

1. postcss.config.js

const purgecss = require('@fullhuman/postcss-purgecss')({ content: ['./layouts/**/*.html', './src/**/*.vue', './src/**/*.jsx'], defaultExtractor: content => content.match(/[\w-/:]+(?

【vue.js|vue3.x兼容tailwindcss(截至发帖)】注意:@fullhuman/postcss-purgecss@2.3.0,2.3.0是兼容postcss7
2. 生成tailwind.config.js
npx tailwindcss init --full

    推荐阅读