Angular 2 + Typescript compiler copy html and css files

后端 未结 7 1180
清酒与你
清酒与你 2020-12-05 07:01

In Angular2 I would have

\"outDir\": \"dist/app\"

in tsconfig.json. As a result the transpiled .js and .map files are generated in /di

7条回答
  •  旧巷少年郎
    2020-12-05 07:28

    This approach is provided by Microsoft:-
    https://github.com/Microsoft/TypeScript-Node-Starter
    Check out the file "copyStaticAssets". None of the solutions above worked for me, so I hope this helps someone like me.

提交回复
热议问题