简体   繁体   English

Babel在Yeeoman Webapp中

[英]Babel in yeoman webapp

I've been trying for some time to get Babel (6to5) working with yeoman webapp generator but I failed miserably. 我一直在尝试让Babel(6to5)与yeoman Webapp Generator一起工作,但我失败了。 I've tried different configurations but none of them worked and I didn't any solution in the Internet. 我尝试了不同的配置,但没有一个起作用,并且在Internet中没有任何解决方案。 Does anyone succeeded in getting babel to work with webapp generator? 有没有人成功让babel与webapp generator一起工作? If so, could you share with me your grunt config file? 如果是这样,您能和我分享您的咕unt的配置文件吗?

Thanks, Lucas 谢谢,卢卡斯

There is a Grunt plug-in for Babel if you haven't gotten to it yet (I know it's been a couple months since you asked). 如果您还没有安装Babel,可以使用Grunt插件(我知道距您提出要求已经有两个月了)。

https://github.com/babel/grunt-babel https://github.com/babel/grunt-babel

There are a couple official(ish)* solutions for babel yeoman generators: 有针对babel yeoman发电机的几种官方(ish)*解决方案

* They are yeoman ports of the official boilerplate samples *它们是官方样板的风俗港口

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM