[英]Typescript Comments in bundled js-file
is there a way to add an important comment to the top of the bundled js-file in typescript. 有没有一种方法可以在打字稿中的捆绑js文件顶部添加重要注释。
i would like to add automaitcally a comment with the Version-information to the top of the js-file everytime it gets "compiled". 我想在每次“编译”时自动在js文件顶部添加带有Version信息的注释。
like: 喜欢:
/*!
v 1.0.1.0
Git:...
License: MIT
...
*/
Yes, there are a set of "header" and "footer" tools. 是的,有一组“页眉”和“页脚”工具。 I'm using gulp-header and gulp-footer .
我正在使用gulp-header和gulp-footer 。 I beleive similar tools are existing for other build tools.
我相信其他构建工具也有类似的工具。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.