Added a CLI flag that lets you change the default pages path from ./pages to something else
#391
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So, this is not necessarily a good idea, or even something desirable, but I'd like to put up this PR for posterity/discussion.
This PR adds a CLI flag that you can use to change the default ‘pages path’ from
./pagesto something else.This was originally developed so that I could vacuum up pages from a location outside the site root (ie. to use the same site builder to build sites from different ‘pages’ sources). Unfortunately, as soon as you start to require files outside the project root, everything starts to fall apart (eg. Webpack can no longer resolve ‘babel-loader’ because
node_modulesis not in the path).Feel free to make this better, provide an argument for why the pages path shouldn't be configurable, or simply close this.