v1.0.0
prettier-plugin-tailwindcss-drupal v1.0.0
Changes
- Added support for Drupal syntax in Twig templates
- Improved class sorting in Drupal-specific elements
- Adapted the tool to work with the Twig plugin (@zackad/prettier-plugin-twig)
Installation Instructions
npm install --save-dev prettier-plugin-tailwindcss-drupal
or
yarn add --dev prettier-plugin-tailwindcss-drupal
Configuration
In the .prettierrc
file:
{
"plugins": ["@zackad/prettier-plugin-twig", "prettier-plugin-tailwindcss-drupal"],
"tailwindStylesheet": "./web/themes/custom/iq/css/tailwind.css",
"singleQuote": false
}
Notes
This plugin is a fork of prettier-plugin-tailwindcss with additional support for Drupal projects.