Skip to content

Commit

Permalink
build.js: don't copy site.json files in the output dir (#2618)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and Trott committed Oct 9, 2019
1 parent ff4b8d4 commit cb7c5fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ function buildLocale (source, locale, opts) {
})
// Sets the build source as the locale folder.
.source(path.join(__dirname, 'locale', locale))
// site.json files aren't needed in the output dir
.ignore('site.json')
.use(withPreserveLocale(opts && opts.preserveLocale))
// Extracts the main menu and sub-menu links form locale's site.json and
// adds them to the metadata. This data is used in the navigation template
Expand Down

0 comments on commit cb7c5fb

Please sign in to comment.