barchielAbyss commented on PR #1109: URL: https://github.com/apache/apisix-website/pull/1109#issuecomment-1133814629
> > remove raw-loader package, change 2 es module export Object > > I also want to remove rawloader, but I don't think it should be done this way. > > We should configure webpack5 directly, this is a capability that docusaurus has not provided so far. > > I'm making some efforts to make our dependency on docusaurus as little as possible. But it's a step-by-step process, not removing configurations that we can't handle at the moment yep, but > docusaurus emm, docusaurus can configure it, maybe u can see [there](https://github.com/algolia/docsearch-website/blob/master/plugins/my-loaders/index.js), and `docusaurus.config.js` add ``` plugins: ['your-plugins'] ``` seted webpack5 after, will corrects typescript checks, I try 2 add, but it is not work ``` // typings/index.d.ts declare module '*.txt' { const content: string; export default content; } declare module '*.vert' { const content: string; export default content; } declare module '*.frag' { const content: string; export default content; } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
