Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/couds/docusaurus-resolve-plugin

Custom resolve imports on docusaurus
https://github.com/couds/docusaurus-resolve-plugin

Last synced: 28 days ago
JSON representation

Custom resolve imports on docusaurus

Awesome Lists containing this project

README

        

# docusaurus-resolve-plugin
Custom resolve imports on docusaurus v2

# Installation

```sh
yarn add @couds/docusaurus-resolve-plugin
```

# How to use

1. Include the plugin in your `docusaurus.config.js` file.

```diff
// 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: {}
+ }
+ ]
+ ],
...
}
```