Runs mask optimizers
var postmask = require('postmask');
postmask
.processSource(template, path, options)
.then(optimizedTemplate => {}, error => {});
OptionsExample = {
plugins: [ "postmask-babel" ],
minify: false,
configs: {
'postmask-babel': {
presets: ['es2015', 'stage-1']
}
}
};
(c) MIT License - Atma.js Project