fix: esbuild load `svg` and `png` as `dataurl` type (#6409)

This commit is contained in:
Yat Ho 2023-12-24 00:32:38 +08:00 committed by GitHub
parent 581d9c34cc
commit a4e8cd5081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ const ctx = await esbuild.context({
entryPoints: ['./src/main.js'],
legalComments: 'external',
loader: {
'.png': 'binary',
'.svg': 'binary' },
'.png': 'dataurl',
'.svg': 'dataurl' },
minify: true,
outfile: './public_html/transmission-app.js',
plugins: [sassPlugin()],