Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Webpackのビルド時間を1/3にした話 #gotandajs

mizuki_r
October 06, 2017

Webpackのビルド時間を1/3にした話 #gotandajs

GotandaJS #9の発表資料です

mizuki_r

October 06, 2017
Tweet

More Decks by mizuki_r

Other Decks in Technology

Transcript

  1. @mizuki_r • シニアフロントエンドエンジニア • エンジニア 2 #javascript #gotandajs #meguroes #perl

    #kichijojipm 五反田のM社で位置ゲー開発に携わる。
 スクラム教に入信したって噂。DDDを ようやく真面目に学び始めた about me こんな人です
  2. 最新の安定版を使え Use the latest webpack version. We are always making

    performance improvements. The latest stable version of webpack is:
  3. DLLPlugin使え Use the DllPlugin to move code that is changed

    less often into a separate compilation. This will improve the application's compilation speed, although it does increase complexitity of the build process.
  4. Smaller = Faster Decrease the total size of the compilation

    to ncrease build performance. Try to keep chunks small.
  5. node-sassは遅いぞ node-sass has a bug which blocks threads from the

    Node.js threadpool. When using it with the thread- loader set workerParallelJobs: 2.