Vite is no longer able to find the manifest file after upgrade to 1.5

Created on 14 October 2025, 3 days ago

Problem/Motivation

We use a flat directory structure for our dist folder where everything is just put into dist with no subfolders, both the assets and the manifest.
This was broken when we upgraded because the backwards compatibility for the manifest setting extracts the wrong path and looks for /var/www/html/docroot/themes/custom/numiko/.vite/manifest.json instead of /var/www/html/docroot/themes/custom/numiko/dist/manifest.json

Steps to reproduce

Use vite with these build options:

build: {
      manifest: 'manifest.json',
      outDir: '../dist',
      assetsDir: './', // Output assets directly inside 'dist/' no subfolder
}

With the default Drupal vite yaml settings.

Proposed resolution

Allow the manifest path relative to dist to be configured with a new optional parameters that by default would be .vite/manifest.json.

Remaining tasks

  • I'll create a merge request for the maintainers to review
🐛 Bug report
Status

Active

Version

1.5

Component

Code

Created by

🇬🇧United Kingdom aurora-norris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024