Upgrade Guide
Tailwind 3.4 to 4.0
If you want to upgrade existing Peak projects to Tailwind 4 and Vite 6, make sure to take care of the following:
- Remove the tailwind config preset files from
tailwind.config.jsto prevent the migrator from running into errors. - Update vite within your
package.jsonto"vite": "^6.0", and the Laravel Vite plugin to"laravel-vite-plugin": "^1.1". - Run
npx @tailwindcss/upgrade@nextand follow all steps. - Update your
resources/css/site.cssto thisopen in new window and use your own configuration from yourtailwind.config.site.js. - Delete
resources/css/tailwind.cssif you weren't using it before. - Create
resources/css/peak.csswith this contentopen in new window. - Create
resources/css/typography.csswith this contentopen in new window and use your own configuration from yourtailwind.config.typography.js. - Create
resources/js/tailwind.peak.jswith this contentopen in new window. - Update your
vite.config.jsto thisopen in new window. - Delete your
postcss.config.jsfile. - Update your
package.jsonby removing unused postcss packages. It should look something like thisopen in new window. - Delete
tailwind.config.js,tailwind.config.peak.js,tailwind.config.site.jsandtailwind.config.typography.js.
Statamic 3.4 to 4.0
With the Release of Peak 12 and Statamic 4.0 the Peak addons got updated to the following major versions:
- Commands 2.0
- SEO 2.0
- Browser Appearance 2.0
- Tools 3.0
If you plan to install these, you'll need to manually update your blueprints to support sections and import the appropriate fieldsets from the add-ons. The required changes are outlined in these Release Notesopen in new window. Only this PRopen in new window is necessary; all other updates are optional.