mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25: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})
|
const files = await glob('pages/**/*.vue', {cwd: this.srcDir})
|
||||||
templateVars.router.routes = createRoutes(files, this.srcDir)
|
templateVars.router.routes = createRoutes(files, this.srcDir)
|
||||||
} else {
|
} else {
|
||||||
templateVars.router.routes = this.createRoutes.call(this, this.srcDir)
|
templateVars.router.routes = this.createRoutes(this.srcDir)
|
||||||
}
|
}
|
||||||
if (typeof this.options.router.extendRoutes === 'function') {
|
if (typeof this.options.router.extendRoutes === 'function') {
|
||||||
// let the user extend the routes
|
// let the user extend the routes
|
||||||
|
@ -79,7 +79,7 @@ export async function render (req, res) {
|
|||||||
const pushAssets = []
|
const pushAssets = []
|
||||||
let m
|
let m
|
||||||
while (m = regex.exec(resourceHints)) { // eslint-disable-line no-cond-assign
|
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') {
|
if (rel === 'preload') {
|
||||||
pushAssets.push(`<${href}>; rel=${rel}; as=${as}`)
|
pushAssets.push(`<${href}>; rel=${rel}; as=${as}`)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user