Created
August 30, 2020 21:34
-
-
Save jefftriplett/ef9ae2cbca4abf6a74210c5881ea8254 to your computer and use it in GitHub Desktop.
Minimal TailwindCSS setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: static | |
static: | |
@npx -p [email protected] tailwindcss build ./assets/index.css \ | |
--config ./assets/tailwind.config.js \ | |
--output ./frontend/css/output.css |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
purge: { | |
enabled: true, // Set this to False while you dev | |
mode: 'all', | |
content: [ | |
'./templates/**/*.html', | |
], | |
}, | |
theme: {}, | |
variants: {}, | |
plugins: [ | |
require('@tailwindcss/typography'), // optional, but useful | |
require('tailwindcss-debug-screens'), // optional, but useful | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment