mirror of
https://github.com/Luzifer/ots.git
synced 2024-12-18 03:54:38 -05:00
128ce071cb
refs #71 Signed-off-by: Knut Ahlers <knut@ahlers.me>
30 lines
556 B
JavaScript
30 lines
556 B
JavaScript
import { sassPlugin } from 'esbuild-sass-plugin'
|
|
import vuePlugin from 'esbuild-vue'
|
|
import esbuild from 'esbuild'
|
|
|
|
esbuild.build({
|
|
assetNames: '[name]',
|
|
bundle: true,
|
|
define: {
|
|
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'dev'),
|
|
},
|
|
entryPoints: ['src/main.js'],
|
|
legalComments: 'none',
|
|
loader: {
|
|
'.woff2': 'file',
|
|
},
|
|
minify: true,
|
|
outfile: 'frontend/app.js',
|
|
plugins: [
|
|
sassPlugin(),
|
|
vuePlugin(),
|
|
],
|
|
target: [
|
|
'chrome87',
|
|
'edge87',
|
|
'es2020',
|
|
'firefox84',
|
|
'safari14',
|
|
],
|
|
})
|