aszx87410 / frontend-intermediate-course

It's a free online course about some frontend tech including Ajax, CORS, gulp, webpack and so on.
266 stars 88 forks source link

[作業] 繳交 hw9 #122

Closed lucreciaLin closed 7 years ago

lucreciaLin commented 7 years ago

slack 帳號

lucrelin

哪一個作業

節省 Request 的極致:一為全,全為一 作業 Github 連結

https://github.com/lucreciaLin/frontend-intermediate-course/tree/master/answers/hw9

作業 Github Page 連結

https://lucrecialin.github.io/frontend-intermediate-course/answers/hw9/index.html

其他補充說明

  1. 好像跑完gulp時根目錄會增加一個bundle.js和style.css, 這情形不確定對不對...? (會等直播課時會在做確認)
  2. 老師真的很對不起,沒學過node.js, 導致在修改hw8及寫hw9時常常亂弄而嚴重卡關, 而煩你很多,真的很抱歉>"<.... 還好最後都弄好了..... 會找時間開始學習node.js, 搜哩QQ
aszx87410 commented 7 years ago
  1. 跑完時候多出兩個是沒錯的,那是你 minify 跟 uglify 之後的結果 有個地方有點錯誤,那就是你最後輸出的 html,不應該取代掉原本的 這樣你如果跑第二次的話應該會出錯XD 主要是這一行:https://github.com/lucreciaLin/frontend-intermediate-course/blob/master/answers/hw9/gulpfile.js#L32 這邊應該把 html 輸出到其他資料夾去
lucreciaLin commented 7 years ago

我將hw9修改的部分放在hw10, 有再次確認整個專案檔案結構, 以及將一些node npm換成直播課用的, 因為發現可能套件deprecated或是像webpack的uglifyjs好像有些版本問題, 所以換掉...