This is an example to solve the issue at nuxt-modules/tailwindcss#127. The key ingredient here is the important
flag in the tailwind.config.js
file.
CodeSandbox link: https://codesandbox.io/s/modest-sound-sib1u
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generate
For detailed explanation on how things work, check out Nuxt.js docs.