Skip to content

Commit 4f65082

Browse files
committed
updated build script to remove map files from build folder so that source files become hidden on deployed code
1 parent 85a742a commit 4f65082

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"predeploy": "npm run build",
3131
"deploy": "gh-pages -d build",
3232
"start": "react-scripts start",
33-
"build": "react-scripts build",
33+
"build": "set \"GENERATE_SOURCEMAP=false\" && react-scripts build",
3434
"test": "react-scripts test",
3535
"eject": "react-scripts eject"
3636
},

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"noEmit": true,
1717
"jsx": "react-jsx",
1818
"noImplicitUseStrict": true,
19-
"sourceMap": true
19+
"sourceMap": false
2020
},
2121
"include": ["src"]
2222
}

0 commit comments

Comments
 (0)