I have an Angular app, is there a way that I can force Angular to deploy the main.js under /assets folder?
basically I want to make Angular-CLI compile main.ts to main.js in assets folder.
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/myprofile",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
]
},
"configurations": {
"production": {
"assets": [
{
"glob": "**/*",
"input": "src/assets",
"output": "/assets/",
"ignore": [
"appConfig.dev.json"
]
},
{
"glob": "favicon.ico",
"input": "src/",
"output": "/"
}
]