If you have multiple applications in an NX Workspace and you are using TaiwindCSS you might have slow builds or build will be stuck when purge is enabled.
Since Angular 11.2, Tailwindcss now work out of the box. but purging is still not smooth at-list for me, maybe this might be NX Workspace problem. It took me hours to fix this.
module.exports = {
purge: {
enabled: process.env.NODE_ENV === 'production',
content: [
`./apps/**/*.html`,
'./libs/**/*.html',
],
},
mode: 'aot',
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {},
plugins: [],
},
};