Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support static asset reference #1

Closed
kena0ki opened this issue May 22, 2021 · 1 comment
Closed

Support static asset reference #1

kena0ki opened this issue May 22, 2021 · 1 comment
Milestone

Comments

@kena0ki
Copy link
Owner

kena0ki commented May 22, 2021

No description provided.

@kena0ki kena0ki added this to the 0.3.0 milestone May 22, 2021
@kena0ki
Copy link
Owner Author

kena0ki commented May 30, 2021

I found this feature can be solved using esbuild built-in options (loader, publicPath and optionally assetNames).
I created a demo. See how to use the options.

build({
entryPoints: ['../vite/packages/playground/vue/index.ts'],
bundle: true,
outdir: 'dist',
plugins: [vue3Plugin()],
loader: {
'.png': 'file',
'.svg': 'file',
},
publicPath: '/dist'
}).catch(() => process.exit(1));

@kena0ki kena0ki closed this as completed May 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant