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

docs(migration): update migration docs to include shadowing #1150

Merged
merged 3 commits into from
Jul 22, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/example/src/pages/guides/v2-migration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ equivalent if your project uses `npm` as its package manager.

const MySpan = () => <span className={mySpan} />;
```
4. Make sure to update the path of your shadowed components (Footer and Header).
- Create a folder each for `Footer` and `Header`.
- Change the file name to `index.js` inside each corresponding folder. More info can be found in the [shadowing docs](https://gatsby-theme-carbon.vercel.app/guides/shadowing/#shadowing-basics)
5. If you have a custom webpack config, be sure your config is compatible with [Webpack 5](https://webpack.js.org/migrate/5/) (the version Gatsby 3 uses)
6. Run `npx gatsby clean` to delete your projects development bundle
7. Run `yarn dev`
Expand Down