coryhouse / coryhouse/javascript-development-environment

dynamic html generation problem with webpack 3

Đang mở
#19 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
293
Fork
185
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện thiết lập webpack 3 với React Router 4.0 và so sánh HTML được tạo ra cho `/` và `/seasons`. Đọc cấu hình webpack và thiết lập HtmlWebpackPlugin được đề cập trong issue; hoàn tất khi trang được tạo ra chèn `bundle.js` cho cả hai route.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, react, webpack
Lĩnh vực
build-system, frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.