How to keep sourcemaps after production build?
Right now, my command looks like this:
"build-prod": "ng build --app=release -prod && cp -R lang dist"
I tried changing it to:
ng build --app=release --sourceMap=true -prod && cp -R lang dist
but nothing changed.
If I do:
ng build --sourcemap
I get sourcemaps but then I get index.html instead of index.prod.html.
Is it possible to edit the first command to build sourcemap files?
this is my tsconfig.json
file:
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
}
}