matheushjs / mjsaldanha.com

Source code of my webpage.
Other
2 stars 0 forks source link

Consider using Webpack (not Babel) #180

Closed matheushjs closed 5 years ago

matheushjs commented 5 years ago

Client-side javascript is becoming messy and hard to maintain.

These libraries should serve to solve that.

matheushjs commented 5 years ago

I guess the most important point here is that we should be pre-compiling javascript on server-side, so that it is easier to debug it

matheushjs commented 5 years ago

We need webpack, but not babel.

Webpack will allow us to separate our client-side code in modules; webpack later bundles them all in a single file.

More than that, webpack minifies the bundled code, by substituting even names of variables to shorter names.

matheushjs commented 5 years ago

Webpack does not check syntax, which is problematic.