From fe0576e8edc0d6829ef0ce2a6f6d93b5ec4e0ed2 Mon Sep 17 00:00:00 2001 From: mryanshenghong Date: Thu, 10 Nov 2022 04:46:58 -0500 Subject: [PATCH] stop point --- .github/workflows/deployment.yml | 1 + package.json | 2 -- vite.config.ts | 23 ++++++++++++----------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index e07c09f..942ab67 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -41,6 +41,7 @@ jobs: curl -sL https://sentry.io/get-cli/ | bash export VERSION=$(echo `sentry-cli releases propose-version`) echo $VERSION + sentry-cli releases files '$VERSION' upload-sourcemaps ./dist --ext js --ext map - name: Deployment diff --git a/package.json b/package.json index ca05867..5278070 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,6 @@ "scripts": { "dev": "vite", "build": "vue-tsc --noEmit && vite build", - "sentry:generate": "echo `sentry-cli releases propose-version`", - "sentry:upload": "sentry-cli releases files '4d94f977f6426bcc66ade9e0ec81f809366829e3' upload-sourcemaps ./dist --ext js --ext map", "preview": "vite preview" }, "dependencies": { diff --git a/vite.config.ts b/vite.config.ts index 1bc53f4..738418a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -36,17 +36,18 @@ export default defineConfig({ commonjsOptions: { sourceMap: true, }, - // minify: true, - // rollupOptions: { - // output: { - // chunkFileNames: "static/js/[name]-[hash].js", - // assetFileNames: "static/[ext]/[name]-[hash].[ext]", - // manualChunks: { - // "md-editor": ["md-editor-v3"], - // element: ["element-plus"], - // }, - // }, - // }, + minify: true, + rollupOptions: { + output: { + chunkFileNames: "static/js/[name]-[hash].js", + assetFileNames: "static/[ext]/[name]-[hash].[ext]", + manualChunks: { + "md-editor": ["md-editor-v3"], + element: ["element-plus"], + }, + sourcemap: 'hidden' + }, + }, reportCompressedSize: false }, });