Skip to content

Instantly share code, notes, and snippets.

@lunohodov
Created August 23, 2021 11:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lunohodov/33621fe43451392b92e006fab13a03b8 to your computer and use it in GitHub Desktop.
Save lunohodov/33621fe43451392b92e006fab13a03b8 to your computer and use it in GitHub Desktop.
Tell TailwindCSS not to purge form elements
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