mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 07:18:59 +02:00
misc(v2): misc fixes
This commit is contained in:
parent
ccff6ed71f
commit
2d7a456208
2 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
||||||
# Docusaurus 2 Changelog
|
# Docusaurus 2 Changelog
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
- Added Google analytics and Google gtag plugins.
|
||||||
|
|
||||||
## 2.0.0-alpha.19
|
## 2.0.0-alpha.19
|
||||||
|
|
||||||
- Add a sensible default for browserslist config.
|
- Add a sensible default for browserslist config.
|
||||||
|
@ -39,8 +43,6 @@ presets: [
|
||||||
- Minify css for production build
|
- Minify css for production build
|
||||||
- Fix weird scrolling problem when navigating to a route with a `hash` location
|
- Fix weird scrolling problem when navigating to a route with a `hash` location
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## V2 Changelog
|
## V2 Changelog
|
||||||
|
|
||||||
### `siteConfig.js` changes
|
### `siteConfig.js` changes
|
||||||
|
|
|
@ -10,7 +10,7 @@ import clientModules from '@generated/client-modules';
|
||||||
function dispatchLifecycleAction(lifecycleAction, ...args) {
|
function dispatchLifecycleAction(lifecycleAction, ...args) {
|
||||||
clientModules.forEach(clientModule => {
|
clientModules.forEach(clientModule => {
|
||||||
const mod = clientModule.__esModule ? clientModule.default : clientModule;
|
const mod = clientModule.__esModule ? clientModule.default : clientModule;
|
||||||
if (mod[lifecycleAction]) {
|
if (mod && mod[lifecycleAction]) {
|
||||||
mod[lifecycleAction](...args);
|
mod[lifecycleAction](...args);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue