coryhouse / coryhouse/javascript-development-environment

dynamic html generation problem with webpack 3

未关闭
#19 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
293
派生
185
PR 合并指标
30 天内没有已合并 PR

描述

really appreciate your efforts and the information given within course. love it.

i followed course and wanted to use it in my react app whereas I used all `latest` perhaps except webpack, currently I am using webpack 3. did some minor changes in webpack config you mentioned earlier.
however strange thing is going on with injecting the it injects the <script src="bundle.js"/>`

` "/seasons" => nothing is injected`

not sure what is the reason, i thought maybe React-Router 4.0 is failing but I think it is actually from configuration things to do with `HtmlWebpackPlugin`. Since `bundle.js` not being injected.

Earlier I used in my old application two separate template files( dev, prod) so in production one i can do code splitting

please can you give me hand to identify my problem. for now I get back to my old configuration.
the video only shows generic configuration without putting React maybe i am doing something wrong.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先复现使用 React Router 4.0 的 webpack 3 设置,并比较 `/` 和 `/seasons` 生成的 HTML。阅读 issue 中提到的 webpack 配置和 HtmlWebpackPlugin 设置;当生成的页面为两个路由都注入 `bundle.js` 时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, react, webpack
领域
build-system, frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。