生产中的GWT源地图 [英] GWT source maps in production

查看:118
本文介绍了生产中的GWT源地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GWT支持超级开发模式下的源地图。不幸的是,尽管事实上我添加了源映射选项到我的* .gwt.xml文件,但它们似乎不能用于生产模式。



如何启用它们?

解决方案

GWT自己的网站如何做到这一点: https://gwt.googlesource.com/gwt-site-webapp/+/master/src/main/java/com/google/gwt/site/webapp/GWTProject。 gwt.xml ,特别是 includeSourceMapUrl 配置属性。



请注意 -saveSource 也传递给GWT编译器。


GWT supports source maps in super dev mode. Unfortunately, they seem not to work in production mode, despite the fact that I added source maps option to my *.gwt.xml file.

How to enable them there?

解决方案

Have a look at how this is done for GWT's own website: https://gwt.googlesource.com/gwt-site-webapp/+/master/src/main/java/com/google/gwt/site/webapp/GWTProject.gwt.xml, specifically the includeSourceMapUrl configuration property.

Note that -saveSource is passed to the GWT compiler too.

这篇关于生产中的GWT源地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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