-
Now, you can define a custom
root
directory for each alias.{ root: './src', aliases: { ... static: { root: './public', // <- will used as this alias' root dir alias: './static' // <- will become ./public/static }, ... } }
In this example, Gatsby is going to use
/public
directory asstatic
alias' root directory rather than/src
.
- The very top
alias
key name has been replaced withaliases
- Typo
- Added the plugin assets
- Initial Release