Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set up w/ Docusaurus #55

Open
jasikpark opened this issue Aug 15, 2022 · 2 comments
Open

How to set up w/ Docusaurus #55

jasikpark opened this issue Aug 15, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@jasikpark
Copy link

I ended up using https://github.com/atomicpages/docusaurus-plugin-module-alias to get alias-hq to work with https://docusaurus.io

// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

...
const hq = require('alias-hq');

/** @type {import('@docusaurus/types').Config} */
const config = {
  ...
  plugins: [
    [
      'docusaurus-plugin-module-alias',
      {
        alias: hq.get('webpack'),
      },
    ],
  ],
  ...
};

module.exports = config;

Just wanted to record this for anyone else who might need it in the future

@davestewart
Copy link
Owner

Hey @jasikpark, thanks!

I don't know much about Docusaurus. You think this would be worth adding to the integrations docs?

Do you have a link to the docs for Docusuarus config?

@jasikpark
Copy link
Author

https://docusaurus.io/docs/configuration this? I think it would be useful for sure :p

This is a great tool 😁 it's been nice to be able to use a single config across web frameworks for aliases: Docusaurus & Astro & Vite all the same

@davestewart davestewart added the documentation Improvements or additions to documentation label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants