解决webpack异步加载的模块 命名前缀都是 1.[name].js 2.[name].js, 3.[name].js

854 阅读1分钟

1.路由表加载模块使用方法

2.webpack.prod.conf 修改

3.效果

4.将js文件分目录打包

效果