Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/couds/docusaurus-resolve-plugin
- Owner: couds
- Created: 2020-05-14T13:19:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-14T13:38:11.000Z (over 4 years ago)
- Last Synced: 2024-10-04T19:28:33.654Z (about 1 month ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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: {}
+ }
+ ]
+ ],
...
}
```