mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(build): enable source maps
This commit is contained in:
parent
70cdc100d9
commit
7281233012
@ -55,6 +55,7 @@ export default defineConfig(() => ({
|
|||||||
outDir: './dist',
|
outDir: './dist',
|
||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
reportCompressedSize: true,
|
reportCompressedSize: true,
|
||||||
|
sourcemap: process.env.NODE_ENV === "production",
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: {
|
input: {
|
||||||
desktop: join(__dirname, "src", "desktop.ts"),
|
desktop: join(__dirname, "src", "desktop.ts"),
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
TRILIUM_PORT=37741
|
TRILIUM_PORT=37741
|
||||||
TRILIUM_DATA_DIR=../data
|
TRILIUM_DATA_DIR=../data
|
||||||
|
NODE_OPTIONS=--enable-source-maps
|
@ -66,6 +66,7 @@
|
|||||||
"minify": true,
|
"minify": true,
|
||||||
"thirdParty": true,
|
"thirdParty": true,
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
|
"sourcemap": true,
|
||||||
"esbuildOptions": {
|
"esbuildOptions": {
|
||||||
"splitting": false,
|
"splitting": false,
|
||||||
"loader": {
|
"loader": {
|
||||||
|
@ -264,6 +264,7 @@
|
|||||||
"minify": true,
|
"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