0.1.0 • Published 4 years ago

@couds/docusaurus-resolve-plugin v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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