Created
February 15, 2018 02:21
-
-
Save joeybeninghove/882ca5a2ea2917ffca087609a7e4c181 to your computer and use it in GitHub Desktop.
Tailwind with Rails and Webpacker
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
plugins: | |
postcss-import: {} | |
postcss-cssnext: {} | |
tailwindcss: "./app/javascript/src/tailwind.js" |
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
/* app/javascript/src/application.css */ | |
@tailwind preflight; | |
@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
// app/javascript/packs/application.js | |
import "../src/application.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
// app/javascript/src/tailwind.js | |
// the tailwind config here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment