mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore: disable source maps
This commit is contained in:
parent
19668d1931
commit
7863a5e09c
@ -70,7 +70,7 @@ export default defineConfig(() => ({
|
|||||||
outDir: './dist',
|
outDir: './dist',
|
||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
reportCompressedSize: true,
|
reportCompressedSize: true,
|
||||||
sourcemap: process.env.NODE_ENV === "production",
|
sourcemap: false,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: {
|
input: {
|
||||||
desktop: join(__dirname, "src", "desktop.ts"),
|
desktop: join(__dirname, "src", "desktop.ts"),
|
||||||
|
@ -48,6 +48,17 @@
|
|||||||
"outputs": [
|
"outputs": [
|
||||||
"{options.outputPath}"
|
"{options.outputPath}"
|
||||||
],
|
],
|
||||||
|
"defaultConfiguration": "production",
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"minify": true,
|
||||||
|
"sourcemap": false
|
||||||
|
},
|
||||||
|
"development": {
|
||||||
|
"minify": false,
|
||||||
|
"sourcemap": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"main": "apps/desktop/src/electron-main.ts",
|
"main": "apps/desktop/src/electron-main.ts",
|
||||||
"outputPath": "apps/desktop/dist",
|
"outputPath": "apps/desktop/dist",
|
||||||
@ -63,10 +74,8 @@
|
|||||||
"format": [
|
"format": [
|
||||||
"cjs"
|
"cjs"
|
||||||
],
|
],
|
||||||
"minify": true,
|
|
||||||
"thirdParty": true,
|
"thirdParty": true,
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"sourcemap": true,
|
|
||||||
"esbuildOptions": {
|
"esbuildOptions": {
|
||||||
"splitting": false,
|
"splitting": false,
|
||||||
"loader": {
|
"loader": {
|
||||||
|
@ -268,6 +268,17 @@
|
|||||||
"^build",
|
"^build",
|
||||||
"client:build"
|
"client:build"
|
||||||
],
|
],
|
||||||
|
"defaultConfiguration": "production",
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"minify": true,
|
||||||
|
"sourcemap": false
|
||||||
|
},
|
||||||
|
"development": {
|
||||||
|
"minify": false,
|
||||||
|
"sourcemap": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"main": "apps/server/src/main.ts",
|
"main": "apps/server/src/main.ts",
|
||||||
"outputPath": "apps/server/dist",
|
"outputPath": "apps/server/dist",
|
||||||
@ -283,10 +294,8 @@
|
|||||||
"cjs"
|
"cjs"
|
||||||
],
|
],
|
||||||
"declarationRootDir": "apps/server/src",
|
"declarationRootDir": "apps/server/src",
|
||||||
"minify": true,
|
|
||||||
"thirdParty": true,
|
"thirdParty": true,
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"sourcemap": true,
|
|
||||||
"esbuildOptions": {
|
"esbuildOptions": {
|
||||||
"splitting": false,
|
"splitting": false,
|
||||||
"loader": {
|
"loader": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user