mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-10-11 13:16:57 +00:00
19 lines
363 B
TypeScript
19 lines
363 B
TypeScript
import path from "path";
|
|
|
|
import type { PluginConfig } from "@docusaurus/types";
|
|
|
|
export default (function webpackPlugin() {
|
|
return {
|
|
name: "webpack-plugin",
|
|
configureWebpack() {
|
|
return {
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "../"),
|
|
},
|
|
},
|
|
};
|
|
},
|
|
};
|
|
} satisfies PluginConfig);
|