Skip to content

v1.0.0

Compare
Choose a tag to compare
@bronisMateusz bronisMateusz released this 16 Apr 07:53
· 300 commits to main since this release

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.