fix: correctly deploy element-call widget via vite-plugin-static-copy
The glob pattern dist/* preserved the full node_modules/... path when copying to public/element-call/, resulting in only a nested node_modules directory being deployed (causing 404 on index.html). Switching to a directory src with rename lets the plugin copy the dist folder wholesale as public/element-call/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -13,8 +13,9 @@ import buildConfig from './build.config';
|
||||
const copyFiles = {
|
||||
targets: [
|
||||
{
|
||||
src: 'node_modules/@element-hq/element-call-embedded/dist/*',
|
||||
dest: 'public/element-call',
|
||||
src: 'node_modules/@element-hq/element-call-embedded/dist',
|
||||
dest: 'public',
|
||||
rename: 'element-call',
|
||||
},
|
||||
{
|
||||
src: 'config.json',
|
||||
|
||||
Reference in New Issue
Block a user