Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@couds/docusaurus-resolve-plugin

couds8ISC0.1.0

Custom resolve imports on docusaurus v2

docusaurus, docusaurus-plugin, webpack, custom imports

readme

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