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: exclude dest folder from pageFiles (fixes #654) #655

Merged
merged 2 commits into from
Jul 27, 2018
Merged

fix: exclude dest folder from pageFiles (fixes #654) #655

merged 2 commits into from
Jul 27, 2018

Conversation

pedrodim
Copy link
Contributor

@pedrodim pedrodim commented Jul 17, 2018

Summary
Fixes #654

Dest folder, if present in the config, gets excluded from pageFiles to prevent parsing errors if any .md file's present.

What kind of change does this PR introduce? (check at least one)

  • Bugfix

Does this PR introduce a breaking change? (check one)

  • No

The PR fulfills these requirements:

  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)

if (siteConfig.dest) {
// exclude dest folder from pageFiles
const outDirRelative = path.relative(sourceDir, outDir)
files.push('!' + siteConfig.dest)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You just created a new variable, but where do you use it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that, fixed now.

Copy link
Member

@ulivz ulivz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tested for it, all looks good to me, thanks!

@ulivz ulivz merged commit c1fe692 into vuejs:master Jul 27, 2018
ulivz added a commit that referenced this pull request Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build fails if dest folder contains a README.md file
2 participants