1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-01-18 03:22:06 +02:00
mailpit/esbuild.config.js

23 lines
602 B
JavaScript
Raw Normal View History

2022-07-29 23:23:08 +12:00
const { build } = require('esbuild')
const pluginVue = require('esbuild-plugin-vue-next')
2022-09-16 14:59:28 +12:00
const { sassPlugin } = require('esbuild-sass-plugin');
2022-07-29 23:23:08 +12:00
const doWatch = process.env.WATCH == 'true' ? true : false;
const doMinify = process.env.MINIFY == 'true' ? true : false;
build({
entryPoints: ["server/ui-src/app.js"],
bundle: true,
watch: doWatch,
minify: doMinify,
sourcemap: false,
outfile: "server/ui/dist/app.js",
plugins: [pluginVue(), sassPlugin()],
loader: {
".svg": "file",
".woff": "file",
".woff2": "file",
},
logLevel: "info"
})