@couds/docusaurus-resolve-plugin

0.1.0 • Public • Published

docusaurus-resolve-plugin

Custom resolve imports on docusaurus v2

Installation

yarn add @couds/docusaurus-resolve-plugin

How to use

  1. 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: {}
+      }
+    ]
+  ],
  ...
}

Package Sidebar

Install

npm i @couds/docusaurus-resolve-plugin

Weekly Downloads

2

Version

0.1.0

License

ISC

Unpacked Size

1.6 kB

Total Files

3

Last publish

Collaborators

  • coud