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).
There are a couple official(ish)* solutions for babel yeoman generators:
https://github.com/thejameskyle/generator-es6-library-boilerplate (port of https://github.com/babel/babel-library-boilerplate ) for browserify/general usage
https://github.com/megawac/generator-babel-node (port of https://github.com/jmeas/es6-node-boilerplate ) for node/io.js usage specifically.
* 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.