fix(builder): layouts condition (#4641)

This commit is contained in:
Ricardo Gobbo de Souza 2019-01-06 06:05:11 -02:00 committed by Pooya Parsa
parent 78433b599e
commit 6436e3b080

View File

@ -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