angular - How to use ng build to generate ts, map and js files into the same folder? -


i used "ng new sample" generate new angular2 folder. version of angular 2.1.0. folder structure is:

angular-cli.json   karma.conf.js       package.json        protractor.conf.js  readme.md           tslint.json         node_modules        e2e                 src         ----app           ------app.component.css          ------app.component.html         ------app.component.spec.ts           ------app.component.ts           ------app.module.ts              ------index.ts              

tsconfig.json file:

    {       "compileroptions": {         "outdir": "${workspaceroot}/debug",         "sourcemap": true,         //"inlinesources": true,         "rootdir": "${workspaceroot}",         "target": "es5",         "typeroots": [           "../node_modules/@types"         ]       }     } 

then ran "ng build", files below output "dist" folder. in fact, didn't set folder "dist" in of config files.

              asset       size  chunks             chunk names       main.bundle.js    2.75 mb    0, 2  [emitted]  main     styles.bundle.js    10.2 kb    1, 2  [emitted]  styles            inline.js    5.53 kb       2  [emitted]  inline             main.map     2.8 mb    0, 2  [emitted]  main           styles.map      14 kb    1, 2  [emitted]  styles           inline.map    5.59 kb       2  [emitted]  inline           index.html  474 bytes          [emitted] 

my question how can output ts, map , js files 1 folder separately using ng build while not using gulp? what's inline.js? why files output dist folder?

if check folder should have file named:

angular-cli.json 

open file , go to:

  "apps": [     {       "root": "src",       "outdir": "dist",       "assets": [         "assets",         "favicon.ico"       ], 

change path outdir folder.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -