Tailwind.css not included in NextJS Production
2021-03-09
Install Tailwind CSS with Next.js
If tailwind not work in prod. Definitely build step fails on file include.
tailwind.config.js
module.exports = {
/*
Make sure purge covered all your files
(Especially _app.tsx)
*/
+ purge: ['./**/*.{js,ts,jsx,tsx}'],
- purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
};
关于本文
文章标题 | Tailwind.css not included in NextJS Production |
发布日期 | 2021-03-09 |
文章分类 | Tech |
相关标签 | #NextJS #Tailwind |