Created
August 23, 2021 11:10
-
-
Save lunohodov/33621fe43451392b92e006fab13a03b8 to your computer and use it in GitHub Desktop.
Tell TailwindCSS not to purge form elements
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: { | |
content: [ | |
'./app/**/*.html.erb', | |
'./app/**/*.js', | |
], | |
safelist: [ | |
'form-input', | |
'form-textarea', | |
'form-select', | |
'form-multiselect', | |
'form-checkbox', | |
'form-radio', | |
] | |
}, | |
plugins: [ | |
require('@tailwindcss/aspect-ratio'), | |
require("@tailwindcss/forms")({ | |
strategy: 'class', | |
}), | |
require('@tailwindcss/typography'), | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment