replace-routes-webpack-plugin
v1.0.5
Published
``` config.plugin("replace-routes-webpack-plugin") .use(require.resolve("replace-routes-webpack-plugin"), [ { modulesRoot: "src/router/modules", targetReg: /\/asyncRoutes/, }, ]); ```
Downloads
4
Readme
用法
config.plugin("replace-routes-webpack-plugin")
.use(require.resolve("replace-routes-webpack-plugin"), [
{
modulesRoot: "src/router/modules",
targetReg: /\/asyncRoutes/,
},
]);