Changelog
- Add
hashRouteroption for project configuration #73 - Add
modifyBabelRcoption for project configuration (b20c484)
Adding HashRouter
Some services, like Github Pages, turn docz default History API navigation impossible because of some rewrites reason. So, you need to enable navigation via hash. You can do that by modifying your doczrc.js like that:
// doczrc.js
export default {
hashRouter: true,
}Modifying default babel without plugins
Until this release was possible to modify custom babel configuration just by creating some plugin. By now is possible to change this just by passing a method on your doczrc.js:
// doczrc.js
export default {
modifyBabelRc: (babelrc) => {
/* your logic here */
return babelrc
}
}