执行`dart2js`时生成哪些文件?为什么? [英] Which files are generated when executing `dart2js`? and why?

查看:110
本文介绍了执行`dart2js`时生成哪些文件?为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

dart2js可能产生 .js.map .js.deps .precompiled .js



他们的目的是什么?和我donno为什么 dart2js 不完成编译后删除它们。

解决方案

p>所有文件都是由 dart2js



:应用程序的JavaScript输出



.precompiled.js :JavaScript输出,但具有内容安全策略(CSP)支持



.js.map :源映射文件,用于调试浏览器中的JavaScript代码。它包含从JavaScript到Dart代码行的映射。



.js.deps :包含用于编译的所有引用文件的列表列表,支持调试,但我不知道这个。


dart2js probably generates .js.map, .js.deps and .precompiled.js.

What's the purpose of them? and I donno why dart2js doens't remove them after finishing compile.

解决方案

All files are generated by dart2js on purpose:

.js: The JavaScript output of your application

.precompiled.js: The JavaScript output but with content security policy (CSP) support

.js.map: source map file used for debugging the JavaScript code in the browser. It contains a mapping from JavaScript to Dart code lines.

.js.deps: contains a list list of all references files used for compilation, prop ably for debugging but I'm not sure about this.

这篇关于执行`dart2js`时生成哪些文件?为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆