ChristopherBiscardi / gatsby-theme-examples

Examples of using gatsby themes
141 stars 11 forks source link

Gatsby themes should use the default webpack config #10

Closed ChristopherBiscardi closed 5 years ago

ChristopherBiscardi commented 5 years ago

Gatsby themes should use the default webpack config to compile their files unless the user overrides the webpack config, at which point we could introduce a helper to merge the two configs.

This allows authors to ship uncompiled code

wcastand commented 5 years ago

Hi, i'm working on a Gatsby theme, it's working fine in a monorepo but i get an error as soon as i try to use it outside of the monorepo, could it be related to this issue? image EDIT: my bad found this closed issue, probably the same error for me https://github.com/ChristopherBiscardi/gatsby-theme-examples/issues/12

ChristopherBiscardi commented 5 years ago

yeah, it's the same issue. We're going to put the webpack config in core so people in userland don't have to do it themselves.