You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
That'd be ideal.
The load-context.js file gets written to the project root (Webpack needs it there) so it could require the page-file-types module from the Gatsby install in node_modules.
Then we could further consolidate things by adding to page-file-types if a file is "static" (e.g. needs wrapped by a react component) or not (is a react component itself).
The reason will be displayed to describe this comment to others. Learn more.
Whoops, I just noticed I didn't force push a commit that added this on.
Then we could further consolidate things by adding to page-file-types if a file is "static" (e.g. needs wrapped by a react component) or not (is a react component itself).
That makes sense.
Want to take this on?
Let me get the flow working with a notebook here and start using gatsby a bit more. If you still have that as an open issue then I can tackle it.
bc6d896
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching the one I missed.
Perhaps this list should be pulled from one spot?
bc6d896
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That'd be ideal.
The
load-context.js
file gets written to the project root (Webpack needs it there) so it could require thepage-file-types
module from the Gatsby install in node_modules.Then we could further consolidate things by adding to
page-file-types
if a file is "static" (e.g. needs wrapped by a react component) or not (is a react component itself).Want to take this on?
bc6d896
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, I just noticed I didn't force push a commit that added this on.
That makes sense.
Let me get the flow working with a notebook here and start using gatsby a bit more. If you still have that as an open issue then I can tackle it.
bc6d896
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds great! I'll open an issue and assign it to you :-) It's not a pressing problem but it'd be nice to fix.