mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-24 23:00:19 +03:00
Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c9ad77fb0 | ||
|
|
229814a4b9 | ||
|
|
89cda92d46 | ||
|
|
722cd7fa53 | ||
|
|
9311b39612 | ||
|
|
f7700cede1 | ||
|
|
b6ef5d50dc | ||
|
|
f78b85ea14 | ||
|
|
f3d5ab8262 |
No files matched your search
@@ -8,6 +8,9 @@ on:
|
||||
jobs:
|
||||
docker-release:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
architecture: [amd64,arm64]
|
||||
steps:
|
||||
- name: Get release version
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||
@@ -41,7 +44,7 @@ jobs:
|
||||
file: ./Dockerfile
|
||||
build-args: |
|
||||
"BASE_URL=/it-tools/"
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: linux/${{ matrix.architecture }}
|
||||
push: true
|
||||
tags: |
|
||||
sharevb/it-tools:baseurl-it-tools
|
||||
|
||||
+6
-2
@@ -115,6 +115,7 @@ export default defineConfig({
|
||||
'fs': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||
'@babel/core': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||
'isolated-vm': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||
'onnxruntime-node': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||
},
|
||||
},
|
||||
define: {
|
||||
@@ -127,9 +128,11 @@ export default defineConfig({
|
||||
target: 'esnext',
|
||||
// sourcemap: false,
|
||||
minify: !process.env.VERCEL,
|
||||
reportCompressedSize: !process.env.VERCEL,
|
||||
// cssMinify: false,
|
||||
modulePreload: false,
|
||||
rollupOptions: {
|
||||
external: ['regex', './out/isolated_vm', 'isolated-vm'],
|
||||
external: ['regex', './out/isolated_vm', 'isolated-vm', 'onnxruntime-node'],
|
||||
output: {
|
||||
format: 'es',
|
||||
manualChunks: (id) => {
|
||||
@@ -137,6 +140,7 @@ export default defineConfig({
|
||||
if (id.includes('tesseract.js')) return 'tesseract.js';
|
||||
if (id.includes('pdfjs')) return 'pdfjs';
|
||||
if (id.includes('unicode')) return 'unicode';
|
||||
// if (id.includes('faker')) return 'faker';
|
||||
// if (id.includes('transformers')) return 'transformers';
|
||||
// if (id.includes("node_modules")) {
|
||||
// return "vendor";
|
||||
@@ -151,7 +155,7 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ['re2-wasm-embedded', 'isolated-vm', 'pdfjs-dist'], // optionally specify dependency name
|
||||
include: ['isolated-vm', 'pdfjs-dist', 'onnxruntime-node'], // optionally specify dependency name
|
||||
esbuildOptions: {
|
||||
supported: {
|
||||
'top-level-await': true,
|
||||
|
||||
Reference in new issue
Block a user