mirror of
https://github.com/axllent/mailpit.git
synced 2025-01-18 03:22:06 +02:00
23 lines
598 B
JavaScript
23 lines
598 B
JavaScript
|
const { build } = require('esbuild')
|
||
|
const pluginVue = require('esbuild-plugin-vue-next')
|
||
|
const sassPlugin = require("esbuild-plugin-sass");
|
||
|
|
||
|
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"
|
||
|
})
|