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

Webpack Talk

Webpack Talk

Richard Bray

April 07, 2018
Tweet

More Decks by Richard Bray

Other Decks in Technology

Transcript

  1. 1. What is Webpack 2. Cool things it can do

    3. How we use it at Octopus
  2. “Webpack is a build tool that puts all of your

    assets, including Javascript, images, fonts, and CSS, in a dependency graph.” - Andy Ray
  3. a. Code splitting “This feature allows you to split your

    code into various bundles which can then be loaded on demand or in parallel.”
  4. b. Hot module replacement (HMR) “It allows all kinds of

    modules to be updated at runtime without the need for a full refresh”
  5. When and why to use Webpack https://blog.andrewray.me/webpack-when-to-use-and-why/ Require vs ES6

    import/export https://stackoverflow.com/questions/31354559/using-node-js-require-vs- es6-import-export Code splitting with react and Webpack https://medium.freecodecamp.org/straightforward-code-splitting-with- react-and-webpack-4b94c28f6c3f Sources