Use this guide to migrate your project from Thulite v2 to Thulite v3.
Prerequisites
- Hugo (latest extended or extended/deploy edition)
- Dart Sass (latest version)
- Node.js/npm (latest LTS version)
Updating
Follow the steps below to update your project.
Remove currently installed dependencies to avoid version conflicts:
Update
package.jsonReplace the contents of your project’s
package.jsonwith the following template:{ "name": "thulite-project", "version": "0.0.0", "description": "Thulite", "author": "Thulite", "license": "MIT", "scripts": { "create": "hugo new", "dev": "hugo server --disableFastRender --noHTTPCache", "portless": "portless run thulite-portless", "format": "prettier **/** -w -c", "build": "hugo --minify --gc", "preview": "vite preview --outDir public" }, "engines": { "node": ">=20.11.0" } }Install the latest Thulite dependency in your project:
Install the latest versions of Portless, Prettier, and Vite as
devDependencies:Optionally, install the recommended integrations in your project:
After upgrading Thulite to the latest version, you may not need to make any changes to your project at all!
If you notice errors or unexpected behavior, review the sections below to identify project changes you may still need to make.
Configuration
Review your project configuration for Thulite and the recommended integrations:
Known Issues
ENOENT
If you get an ENOENT error, run the following command: