1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-30 10:52:00 +00:00

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

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()],