coryhouse / coryhouse/javascript-development-environment

dynamic html generation problem with webpack 3

オープン
#19 コメント 1 件 リアクション 0 件 担当者 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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by reproducing the webpack 3 setup with React Router 4.0 and compare the generated HTML for `/` and `/seasons`. Read the webpack configuration and HtmlWebpackPlugin setup mentioned in the issue; done means the generated page injects `bundle.js` for both routes.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, react, webpack
領域
build-system, frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。