-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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(gatsby): compile themes through default webpack config #13651
fix(gatsby): compile themes through default webpack config #13651
Conversation
I dont think the test failure is related to the code changes:
|
Co-Authored-By: grantglidewell <this.prototype.grant@gmail.com>
Co-Authored-By: grantglidewell <this.prototype.grant@gmail.com>
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.
Hi! Sorry to jump in like this - pulled down this PR for my own use, thank you for opening it! I ran into a couple small issues when I was using this,
if ( | ||
store.getState().themes.themes | ||
) { | ||
configRules.concat( |
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.
this one probably needs to be
configRules = configRules.concat...
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.
yup, true as concat would not alter the original array
store.getState().themes.themes.map(theme => { | ||
return { | ||
test: /\.jsx?$/, | ||
includes: theme.themeDir, |
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.
Think the rule option is called include
vs includes
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, good catch
…l/gatsby into topic-themes-apply-webpack
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.
LGTM (also verified locally) 👍
|
Description
Apply default webpack config to gatsby themes @ChristopherBiscardi
Related Issues
Addresses:
ChristopherBiscardi/gatsby-theme-examples#10