$ npm install babel-connect
var babelMiddleware = require("babel-connect");
app.use(babelMiddleware({
options: {
// options to use when transforming files
},
src: "assets",
dest: "cache",
ignore: /node_modules/
}));
app.use(connect.static("cache"));