From a28ef1548973e6413d1075ac8ad519b291b7f2bc Mon Sep 17 00:00:00 2001 From: Lance Gliser Date: Wed, 17 Jul 2024 12:19:44 -0500 Subject: [PATCH] Added MIGRATION notes for MAJOR change --- MIGRATION.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/MIGRATION.md b/MIGRATION.md index 9654d2f..a8bf5d4 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -1,5 +1,31 @@ # Migration guide +## 2.x + +Flowbite updates 0.7 - 0.10 + +`tailwind.config.js` content path: + +old: "node\*modules/flowbite-react/lib/esm/\*\*/\_.js" + +new: "node\*modules/flowbite-react/dist/esm/\*\*/\_.mjs" - Please use (`flowbite.content()`) + +```js +const flowbite = require("flowbite-react/tailwind"); + +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: [ + // ... + flowbite.content(), + ], + plugins: [ + // ... + flowbite.plugin(), + ], +}; +``` + ## 1.x Feature Attributes updated to include Infer params This breaking change modifies the data structures for FeatureAttributes.