@hcfe/autoroute-webpack-plugin
v1.0.5
Published
自动路由webpack插件:目前不支持嵌套路由,生成的路由都是平级
Downloads
13
Readme
@hcfe/autoroute-webpack-plugin
自动路由webpack插件:目前不支持嵌套路由,生成的路由都是平级
Usage
const autorouteWebpackPlugin = require('@hcfe/autoroute-webpack-plugin');
new autorouteWebpackPlugin({
routeOutPath:'',//路由输出路径,默认'./.temp/routes.js'
pages:'',//需要生成路由的文件夹,默认'src/pages'
importPrefix:'',//动态路由前缀,默认'@/pages/'
dynamic:'',//是否是动态路由,默认true
chunkNamePrefix:'',//webpackChunkName前缀,默认'mfs-'
customBlock:'',//vue customBlock,用于生成路由自定义信息,默认'w-route',
})