Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: v4.2.15 breaks building docs #260

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions tmpl/include-target-script-and-styles.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,28 @@ const scripts = []
const styles = []


for (const script of this.includeScript) {
if(typeof script === 'object') {
for (const target of script.targets) {
if(filename === target) {
scripts.push(script.filepath)
if(Array.isArray(this.includeScript)) {
for (const script of this.includeScript) {
if(typeof script === 'object') {
for (const target of script.targets) {
if(filename === target) {
scripts.push(script.filepath)
}
}
}
}
}
}
}

for (const style of this.includeCss) {
if(typeof style === 'object') {
for (const target of style.targets) {
if(filename === target) {
styles.push(style.filepath)
if(Array.isArray(this.includeCss)) {
for (const style of this.includeCss) {
if(typeof style === 'object') {
for (const target of style.targets) {
if(filename === target) {
styles.push(style.filepath)
}
}
}
}
}
}
}


Expand Down