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
Issue fork vite-3552017
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
aurora-norris commentedComment #6
wotnakMade some changes in the MR:
manifestOverridetomanifestPathmanifestconfig optionMerged and released in 1.5.2.