@couds/docusaurus-resolve-plugin
v0.1.0
Published
Custom resolve imports on docusaurus v2
Downloads
1
Maintainers
Readme
docusaurus-resolve-plugin
Custom resolve imports on docusaurus v2
Installation
yarn add @couds/docusaurus-resolve-plugin
How to use
- Include the plugin in your
docusaurus.config.js
file.
// docusaurus.config.js
module.exports = {
...
+ plugins: [
+ [
+ '@couds/docusaurus-resolve-plugin',
+ {
+ modules: ['src/modules', ...], // All the folders here will be resolved with an absolute import (Just like they were inside the node_modules folder)
+ alias: {}
+ }
+ ]
+ ],
...
}