UNPKG

sails

Version:

API-driven framework for building realtime apps, using MVC conventions (based on Express and Socket.io)

14 lines (6 loc) 716 B
# tasks/config/babel.js This file configures a Grunt task called "babel". This task is used to <a href="https://en.wiktionary.org/wiki/transcompile" target="_blank">transpile</a> any <a href="http://es6-features.org" target="_blank">ES8, ES7, and ES6 syntax</a> in your front-end JavaScript files for compatibility with older browsers. > (By default, only `.js` files in the `assets/js/` folder and subfolders will be transpiled. If you need other things transpiled, such as `assets/dependencies/`, you'll need to modify the configuration of this task accordingly.) For additional usage documentation, see [`grunt-babel`](https://npmjs.com/package/grunt-babel). <docmeta name="displayName" value="babel.js">