mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
ESLint
This commit is contained in:
parent
38e7dd509a
commit
dabfe68009
@ -221,7 +221,7 @@ async function generateRoutesAndFiles () {
|
||||
const files = await glob('pages/**/*.vue', {cwd: this.srcDir})
|
||||
templateVars.router.routes = createRoutes(files, this.srcDir)
|
||||
} else {
|
||||
templateVars.router.routes = this.createRoutes.call(this, this.srcDir)
|
||||
templateVars.router.routes = this.createRoutes(this.srcDir)
|
||||
}
|
||||
if (typeof this.options.router.extendRoutes === 'function') {
|
||||
// let the user extend the routes
|
||||
|
@ -79,7 +79,7 @@ export async function render (req, res) {
|
||||
const pushAssets = []
|
||||
let m
|
||||
while (m = regex.exec(resourceHints)) { // eslint-disable-line no-cond-assign
|
||||
const [_, rel, href, as] = m
|
||||
const [_, rel, href, as] = m // eslint-disable-line no-unused-vars
|
||||
if (rel === 'preload') {
|
||||
pushAssets.push(`<${href}>; rel=${rel}; as=${as}`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user