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

Symlink posts directory? #460

Closed
f0rr0 opened this issue Sep 24, 2016 · 4 comments
Closed

Symlink posts directory? #460

f0rr0 opened this issue Sep 24, 2016 · 4 comments

Comments

@f0rr0
Copy link

f0rr0 commented Sep 24, 2016

This does not seem to work for me. I kept the posts in an entirely separate directory and added a symlink in my-project/pages. Can someone confirm?

@KyleAMathews
Copy link
Contributor

What sort of error are you seeing?

@f0rr0
Copy link
Author

f0rr0 commented Sep 27, 2016

The markdown files don't show at all. There's no error per se. Immediate children of the blog directory are rendered alright, however files in sub directories are not set on route.pages

|-blog
|-pages
  |- blog -> ../blog (symlink)

This is the directory structure.

@KyleAMathews
Copy link
Contributor

I'd investigate how Webpack works with symlinks — not familiar myself. This issue might help webpack/webpack#1643

@f0rr0
Copy link
Author

f0rr0 commented Sep 27, 2016

@KyleAMathews webpack loads the files correctly. require.context is working as expected. context.keys() has all files in ./pages directory including the symlinked ones

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

No branches or pull requests

2 participants