mirror of
https://github.com/Luzifer/go-latestver.git
synced 2024-11-14 01:42:41 +00:00
21 lines
406 B
JavaScript
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',
|
|
],
|
|
})
|