0
我使用反应动态路由:动态反应在HTML-的WebPack-插件路由
<Route
path="/"
getComponent={(location, cb) => {
System.import('./App')
.then(loadRoute(cb))
.catch(errorLoading);
}}
/>
我在的WebPack只有一个入口点:
context: path.resolve(__dirname),
entry: {
app: './assets/js/components/index',
},
和的WebPack是产生每个app.js并为每个路线提供一个文件。
但我生成的HTML文件不具有这些js文件的导入。
有没有这方面的设置?