mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(builder): layouts condition (#4641)
This commit is contained in:
parent
78433b599e
commit
6436e3b080
@ -349,7 +349,7 @@ export default class Builder {
|
||||
}
|
||||
return
|
||||
}
|
||||
if (!templateVars.layouts[name] || /\.vue$/.test(file)) {
|
||||
if (!templateVars.layouts[name] && /\.vue$/.test(file)) {
|
||||
templateVars.layouts[name] = this.relativeToBuild(
|
||||
this.options.srcDir,
|
||||
file
|
||||
|
Loading…
Reference in New Issue
Block a user