Minimal Serverless project for a Static Web in S3 using Tailwind-CSS
The project assumes you have installed NPM and Serverless Framework in your Global
We suppose you know about Tailwind, but still we have add a couple of nice to have in the css/tailwind.css file:
you-blockhead.ttf
with a new class called primary-text
npm i
npm run build
npm run start
Go to http://127.0.01:8000 and voilà!
Make sure you have updated the template values:
In serverless.yml
file:
In s3-bucket-policy:
Once the values are updated then run npm i
to initialise all
Happy coding :)
To have the basic Tailwind Template simply remove serverless.yml
file, the serverless-finch
import from package.json and the deploy script.
Or even easier, just use this guy: