Files
nonebot2/website/src/plugins/webpack-plugin.cjs
2023-09-27 16:00:26 +08:00

24 lines
375 B
JavaScript

// @ts-check
const path = require("path");
/**
* @returns {import('@docusaurus/types').Plugin}
*/
function webpackPlugin() {
return {
name: "webpack-plugin",
configureWebpack() {
return {
resolve: {
alias: {
"@": path.resolve(__dirname, "../"),
},
},
};
},
};
}
module.exports = webpackPlugin;