add mjs to supported extensions

This commit is contained in:
Pooya Parsa 2018-03-16 23:34:54 +03:30
parent 6e54a3868d
commit 3f83921c71

View File

@ -77,6 +77,10 @@ Options.from = function (_options) {
options.extensions.unshift('js')
}
if (options.extensions.indexOf('mjs') === -1) {
options.extensions.unshift('mjs')
}
// If app.html is defined, set the template path to the user template
options.appTemplatePath = path.resolve(options.buildDir, 'views/app.template.html')
if (fs.existsSync(path.join(options.srcDir, 'app.html'))) {