Socket
Socket
Sign inDemoInstall

@couds/docusaurus-resolve-plugin

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @couds/docusaurus-resolve-plugin

Custom resolve imports on docusaurus v2


Version published
Weekly downloads
3
Maintainers
1
Install size
2.55 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 14 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc