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:
parent
cdb0e67eb3
commit
cb79277374
8 changed files with 2030 additions and 0 deletions
8
postcss.config.js
Normal file
8
postcss.config.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
module.exports = {
|
||||
plugins: [
|
||||
require('tailwindcss'),
|
||||
...process.env.NODE_ENV === 'production'
|
||||
? [require('cssnano')]
|
||||
: []
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue