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

Re-implement onCreateWebpackConfig hook #18

Merged
merged 2 commits into from
Jul 6, 2019
Merged

Re-implement onCreateWebpackConfig hook #18

merged 2 commits into from
Jul 6, 2019

Conversation

cometkim
Copy link
Owner

@cometkim cometkim commented Jul 3, 2019

Gatsby's actions.{...} APIs are quite smart. So stop manipulate the config.

See https://github.com/gatsbyjs/gatsby/blob/master/docs/docs/add-custom-webpack-config.md
See https://github.com/survivejs/webpack-merge
Resolves #17
Resolves #13

@cometkim cometkim changed the title Re-implement onCreateWebpackConfig hook WIP: Re-implement onCreateWebpackConfig hook Jul 3, 2019
@cometkim

This comment has been minimized.

@cometkim cometkim changed the title WIP: Re-implement onCreateWebpackConfig hook Re-implement onCreateWebpackConfig hook Jul 3, 2019
It `setWebpackConfig()` only supports rules and plugins ¯\_(ツ)_/¯
@silvenon
Copy link
Collaborator

silvenon commented Jul 6, 2019

Thanks for the fix and verifying with users that it works! I didn't know that setWebpackConfig uses webpack-merge. 😲

@silvenon silvenon merged commit 605370f into cometkim:master Jul 6, 2019
@cometkim cometkim deleted the reimpl branch July 6, 2019 09:46
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.

Not working in Gatsby production mode TS: Using the *** tag in runtime is not supported.
2 participants