Pseudo Random Nonsense Generator

Webpack

· note

WEBPACK

what is Webpack?

  • another module bundler to turn fancy javascript / react stuff into standard Javascript
  • module bundlers are needed to make things work because it turns all the pre-Javascript react and nodejs code into runnable Javascript.

TODO: do the webpack thing

versioning errors

advanced webpack

minimal setup environment for reactjs

Webpack seeks to unify Javascript module syntaxes and provide tools for a full swath of static asset management tasks. It imposes no restrictions on your choice of module syntax, and offers full support for Javascript, CSS, and even image preprocessing. link

why webpack?

  • https://tutorialzine.com/2017/04/learn-webpack-in-15-minutes

  • Pros:

    • Great for working with single-page apps
    • Accepts both require() and import module syntaxes
    • Allows for very advanced code splitting
    • Hot Reload for quicker development with React, Vue.js and similar frameworks
    • Мost popular build tool according to the 2016 JavaScript survey
  • Cons:

    • Not suitable for beginners in web development
    • Working with CSS files, images, and other non-JS resources is confusing at first
    • Documentation could be better
    • Changes a lot, even most 2016 tutorials are already outdated