Replies: 1 comment 2 replies
-
You can also use a plugin with I didn't try but something like this should work: export default function MyAliasPlugin(context, options) {
return {
name: 'my-alias-plugin',
configureWebpack() {
return {
resolve: {
alias: {
"@myAlias", "/my/aliased/path"
},
},
};
},
};
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi to everybody.
In my doc project I have some .md files with references of a custom component.
The references is:
import TcfPurposes from '../../src/components/TcfPurposes.tsx'
This works. The problem is that now I've translated my files to a new language so I have those .md files also under the i18n/languagecode/.... path.
If I build the documentation, an error occurs about the custom component path.
in this docusaurus doc page I've read about alias but I'm not able to find any information about how set them inside the project.
I've already checked the doc about the docusaurus.config.js.
How can I set aliases to use in my project? maybe an additional plugin should be added?
I already have
Thanks
Beta Was this translation helpful? Give feedback.
All reactions