1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

docs(docs): document the use of AliasPlugin for theme resolution

This commit is contained in:
Thomas Heartman 2022-04-02 16:47:38 +02:00
parent c8578f06c9
commit 524be02b74

View File

@ -31,6 +31,18 @@ module.exports = {
);
config.resolve.plugins = [
// add a "layered" approach to theme resolution that matches
// Docusaurus' theme resolution:
// https://docusaurus.io/docs/2.0.0-beta.17/advanced/client#theme-aliases
//
// First, check to see if the referenced component has
// been swizzled and exists in `../src/theme`.
//
// If it's not there, check the `theme-classic/lib-next/theme` directory in
// `node_modules`.
//
// Finally, if it's not found anywhere else, check the
// `theme-fallback` directory.
new AliasPlugin(
'described-resolve',
[