Separate Angular2 TypeScript files and JavaScript files into different folders, maybe 'dist‘

后端 未结 16 2296
清酒与你
清酒与你 2020-11-28 19:52

I am using the 5 min quickstart from angular.io website, which contain a file structure like this:

angular2-quickstart
 app
   app.component.ts
   boot.ts
 i         


        
16条回答
  •  鱼传尺愫
    2020-11-28 20:39

    For Angular 4 with files from quickstart, all I had to do was the following (a mix of the previously stated answers but slightly different values) :

    • In tsconfig.json (add) : "outDir": "../dist"
    • In bs-config.json (change) : "baseDir": ["dist", "src"],
    • In bs-config.e2e.json (change) : "baseDir": ["dist", "src"],

    No change to systemjs.config.js.

提交回复
热议问题