mirror of
https://github.com/Luzifer/stadt-land-fluss.git
synced 2024-12-20 14:51:16 +00:00
35 lines
641 B
JavaScript
35 lines
641 B
JavaScript
|
import esbuild from 'esbuild'
|
||
|
import { sassPlugin } from 'esbuild-sass-plugin'
|
||
|
import vuePlugin from 'esbuild-plugin-vue3'
|
||
|
|
||
|
const buildOpts = {
|
||
|
assetNames: '[name]-[hash]',
|
||
|
bundle: true,
|
||
|
define: {
|
||
|
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'dev'),
|
||
|
},
|
||
|
entryPoints: ['src/main.ts'],
|
||
|
legalComments: 'none',
|
||
|
loader: {
|
||
|
'.ttf': 'file',
|
||
|
'.woff2': 'file',
|
||
|
},
|
||
|
minify: true,
|
||
|
outfile: 'dist/app.js',
|
||
|
plugins: [
|
||
|
sassPlugin(),
|
||
|
vuePlugin(),
|
||
|
],
|
||
|
target: [
|
||
|
'chrome109',
|
||
|
'edge116',
|
||
|
'es2020',
|
||
|
'firefox115',
|
||
|
'safari15',
|
||
|
],
|
||
|
}
|
||
|
|
||
|
export { buildOpts }
|
||
|
|
||
|
esbuild.build(buildOpts)
|