Default to including source maps, but remove in production

Angular was configured to not generate source maps by default, but to do it in
production.
This seems exactly backwards---I don't want source maps in production (to save
space), but do wants them during development
This commit is contained in:
William J. Bowman 2021-05-12 01:35:25 -07:00 committed by Johannes Millan
parent 6013403d03
commit 4f8b75dec3

View file

@ -32,14 +32,8 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"preserveSymlinks": true,
"assets": [
"src/favicon.ico",
"src/assets",
"src/manifest.json"
],
"styles": [
"src/styles.scss"
],
"assets": ["src/favicon.ico", "src/assets", "src/manifest.json"],
"styles": ["src/styles.scss"],
"scripts": [],
"webWorkerTsConfig": "src/tsconfig.worker.json"
},
@ -60,7 +54,7 @@
],
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
@ -84,7 +78,7 @@
],
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
@ -169,24 +163,15 @@
"tsConfig": "src/tsconfig.spec.json",
"preserveSymlinks": true,
"karmaConfig": "src/karma.conf.js",
"styles": [
"src/styles.scss"
],
"styles": ["src/styles.scss"],
"scripts": [],
"assets": [
"src/favicon.ico",
"src/assets",
"src/manifest.json"
]
"assets": ["src/favicon.ico", "src/assets", "src/manifest.json"]
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
}
}
}