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

Usage with parcel #197

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Usage with parcel #197

wants to merge 4 commits into from

Conversation

Tom-Julux
Copy link

No description provided.

@vercel
Copy link

vercel bot commented Jan 4, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

@egoist
Copy link
Owner

egoist commented Jan 4, 2019

How does Parcel serve the static files? Docute will load .md files from root path by default.

@jthegedus
Copy link

jthegedus commented Mar 24, 2019

@Tom-Julux people in the Parcel issue you link to recommend this https://github.com/elwin013/parcel-plugin-static-files-copy#readme which seems to be in high use now for copying static assets.

@egoist Parcel doesn't serve any static files. So it will only bundle your index.html and index.js into a dist/ dir. So if you were to deploy the dist/ folder you would first need to copy over your .md files to the dist/ dir for Docute to be able to serve them locally, unless you used the sourcePath with a full URL to the .md files.

It's handy if you want to separate the config and customisation of Docute into one folder and have content in another served statically from your repo, but not very intuitive IMO.

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.

3 participants