2.0.0-beta.40 (2022-04-25)
Bug Fixes
- allow building multiple times in the same dest dir (close #772) (30bb4a8)
- bundler-vite: disable scss charset by default (f3f8772)
- bundler-vite: fix build failure when there are no css files (close #697) (#829) (f6101a5)
- bundler-vite: remove redundant use of postcss-csso (close #759) (00c27c3)
- client: support hot-reload of frontmatter head (effa95f)
- plugin-active-header-links: do not append hash at page top (close #693) (#722) (f71cb50)
- plugin-palette: fix sass import when path contains spaces (close #481) (#814) (bbea812)
Code Refactoring
- drop support for using bundler, theme and plugins by name (#843) (b85b1c3)
Features
- cli: enable sourcemap for ts files (close #457) (bf8c4bc)
- core: enable prefetch by default (9d40851)
- markdown: bump markdown-it to v13 (09a3637)
- markdown: improve code fence language detection (close #752) (#815) (1c4d237)
- plugin-docsearch: remove preact dependency (bb4a2ca)
BREAKING CHANGES
- config
bundler
should import the bundler directly, and bundlerConfig
has been removed - config
theme
should import the theme directly, and themeConfig
has been removed - config
plugins
should import the plugins directly - theme API
plugins
should import the plugins directly - theme API
extends
should import the parent theme directly - plugin function and theme function should no longer accept user options as the first param, please check out the guide for how to write a plugin and a theme
- core: default value of
shouldPrefetch
option has been changed from false
to true