cc-esbuild-vue/{{cookiecutter.folder_name}}/ci/build.mjs
2021-12-03 17:54:08 +01:00

21 lines
433 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: '{{cookiecutter.output_folder_name}}/app.js',
plugins: [vuePlugin()],
target: [
'chrome87',
'edge87',
'es2020',
'firefox84',
'safari14',
],
})