mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
add mjs to supported extensions
This commit is contained in:
parent
6e54a3868d
commit
3f83921c71
@ -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'))) {
|
||||
|
Loading…
Reference in New Issue
Block a user