mirror of
https://github.com/Luzifer/ots.git
synced 2025-07-31 02:08:56 -04:00
Switch to esbuild & NodeJS 18
- Replace Axios with `fetch` api - Update dependencies Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ea631beeef
commit
d3ca12fa35
16 changed files with 4517 additions and 7986 deletions
28
ci/build.mjs
Normal file
28
ci/build.mjs
Normal file
|
@ -0,0 +1,28 @@
|
|||
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'],
|
||||
loader: {
|
||||
'.woff2': 'file',
|
||||
},
|
||||
minify: true,
|
||||
outfile: 'frontend/app.js',
|
||||
plugins: [
|
||||
sassPlugin(),
|
||||
vuePlugin(),
|
||||
],
|
||||
target: [
|
||||
'chrome87',
|
||||
'edge87',
|
||||
'es2020',
|
||||
'firefox84',
|
||||
'safari14',
|
||||
],
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue