# Hyas 2.4

Hyas 2.4 raises the Hugo requirement, improves the scripts setup, and adds developer tooling to streamline local work and releases.

Hyas 2.4 is now available! This release includes a new Hugo requirement, an improved `scripts` setup, new development tools, and more.

<!-- omit in toc -->

## Highlights

- [Highlights](#highlights)
- [Get started](#get-started)
- [New Hugo requirement](#new-hugo-requirement)
- [Improved `scripts` setup](#improved-scripts-setup)
- [New development tools](#new-development-tools)
- [Bug Fixes](#bug-fixes)

<!-- omit in toc -->

## Get started

To upgrade an existing project, see the updated [Upgrade to Hyas v2](https://docs.thulite.io/start-here/updating/v2/) guide.

## New Hugo requirement

Hyas 2.4 now requires you to have the [latest Hugo extended version](https://github.com/gohugoio/hugo/releases/latest) installed globally on your system. See Hugo's documentation for [installation](https://gohugo.io/installation/) instructions.

## Improved `scripts` setup

Hyas 2.4 introduces a cleaner `scripts` section in your projects' `package.json`:

```json
{
  "name": "basic-starter",
  "version": "0.0.0",
  "description": "Hyas",
  "author": "Hyas",
  "license": "MIT",
  "scripts": {
    "create": "hugo new",
    "dev": "hugo server --disableFastRender --noHTTPCache",
    "format": "prettier **/** -w -c",
    "build": "hugo --minify --gc",
    "preview": "vite preview --outDir public"
  },
  "dependencies": {
    "thuliteio": "^2.4.2"
  },
  "devDependencies": {
    "prettier": "^3.2.5",
    "vite": "^5.2.10"
  },
  "engines": {
    "node": ">=20.11.0"
  }
}
```

## New development tools

Hyas now uses [Prettier](https://prettier.io/) as a code formatter and [Vite](https://vite.dev/) to preview your project's build. You can configure Prettier in the `.prettierrc.yaml` and `.prettierignore` files in the root of your project. With Vite, when you use the `--host` flag, you can preview the build on your local network — for example on your mobile phone — here's how:

{{< tabs "create-new-site" >}}
{{< tab "npm" >}}

```bash
npm run build -- --baseURL=/ && npm run preview -- --host
```

{{< /tab >}}
{{< tab "pnpm" >}}

```bash
pnpm build --baseURL=/ && pnpm preview --host
```

{{< /tab >}}
{{< tab "Yarn" >}}

```bash
yarn run build --baseURL=/ && yarn run preview --host
```

{{< /tab >}}
{{< tab "bun" >}}

```bash
bun run build --baseURL=/ && bun run preview --host
```

{{< /tab >}}
{{< /tabs >}}

<!-- omit in toc -->

## Bug Fixes

Hyas 2.4 also includes several bug fixes. Check out the [release notes](https://github.com/thuliteio/thulite/releases) to learn more.
