Skip to content

Instantly share code, notes, and snippets.

@reggie3
Created October 19, 2018 19:12
Show Gist options
  • Save reggie3/36018eae007cafddacefcbce77caf03a to your computer and use it in GitHub Desktop.
Save reggie3/36018eae007cafddacefcbce77caf03a to your computer and use it in GitHub Desktop.
Gatsby js config for shared imports
exports.modifyWebpackConfig = ({ config, _stage }) => {
console.log("*********config._config.context: ", config._config.context)
return config.merge({
resolve: {
alias: {
shared: path.resolve(config._config.context, '../shared'),
},
},
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment