简体   繁体   中英

Babel in yeoman webapp

I've been trying for some time to get Babel (6to5) working with yeoman webapp generator but I failed miserably. I've tried different configurations but none of them worked and I didn't any solution in the Internet. Does anyone succeeded in getting babel to work with webapp generator? If so, could you share with me your grunt config file?

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).

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

There are a couple official(ish)* solutions for babel yeoman generators:

* They are yeoman ports of the official boilerplate samples

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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