Add and configure Tailwind CSS

Add and configure Tailwind CSS within the project, including adding npm
scripts for compiling the CSS, configuring purge settings, and adding
the `cssnano` library for minifying the CSS (which is run for production
builds).
This commit is contained in:
Oliver Davies 2020-12-26 22:03:46 +00:00
parent cdb0e67eb3
commit cb79277374
8 changed files with 2030 additions and 0 deletions

8
postcss.config.js Normal file
View file

@ -0,0 +1,8 @@
module.exports = {
plugins: [
require('tailwindcss'),
...process.env.NODE_ENV === 'production'
? [require('cssnano')]
: []
]
}