go-latestver/ci/build.mjs
Knut Ahlers ca0e05c97e
Add frontend stub / initial setup of frontend
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-11-29 21:48:45 +01:00

21 lines
406 B
JavaScript

import vuePlugin from 'esbuild-vue'
import esbuild from 'esbuild'
esbuild.build({
bundle: true,
define: {
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'dev'),
},
entryPoints: ['src/main.js'],
loader: {},
minify: true,
outfile: 'frontend/app.js',
plugins: [vuePlugin()],
target: [
'chrome87',
'edge87',
'es2020',
'firefox84',
'safari14',
],
})