Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Commit

Permalink
fix: allow implementor to override pathPrefix, default is to use the id
Browse files Browse the repository at this point in the history
  • Loading branch information
pimlie committed Oct 11, 2019
1 parent a785e8f commit cb47cf0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/blueprint.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,12 @@ export default class Blueprint extends Module {
}))
}

getPathPrefix(pathPrefix) {
return pathPrefix || this.id
}

async resolveFiles (files, pathPrefix) {
pathPrefix = pathPrefix || this.id
pathPrefix = this.getPathPrefix(pathPrefix)

// use an instance var to keep track
// of final template src/dst mappings
Expand Down

0 comments on commit cb47cf0

Please sign in to comment.