Another reason SPA’s suck is they assume all users are using the latest greatest highest powered device. This leaves out more than half the planet and is a very arrogant approach basically saying you are not important to us because you are poor and have a crappy device and slow connection go elsewhere you peasant.
I’ll post links here as I get time. The first one is an excellent piece covering much of why SPA’s are not a good choice.
New to node and need to install npm, node.js? Use NVM node version manager so you can install more than one version of nodejs.
I had to look for the answer to this until I found it. You update to a newer version of NVM node version manager the same way you install it regardless of how you install it. I am not sure what happens if you install nvm with curl then try to update it in another way.
For example I used the following in my terminal as not the root user, just a plain user curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
When I want to install the next version I replace the v0.35.3 with the next version and it does all the work. If you installed nvm as a root user then you will not be able to access it easily as any other user.
In fact, if you type nvm –version in the command line as a regular user after you installed it as a root user, you will be told it is not installed, or nvm is not a recognized command would you like to install. I did this, so that is how I learned not to install it as a root user.
Never ever, ever, not ever use sudo when installing node, npm, nvm or anything like yarn it totally fucks every last thing up.
If you accidentally use sudo follow these instructions to fix the bowl of mashed spaghetti you end up with.
The node world feels as disorganized as Scala here is a link to the latest version
I have used many tricks in the past such as creating my own BASH scripts which collected the files from folders and checked the order and trans-piled and minified them to single files. Even that process got to be a pain because it is hard to make sure things are loa “path”: __dirname+’/static’,
“filename”: “[name].[chunkhash:8].js”ded in the right order.
Webpack makes it easier
Instead of explaining webpack in a lot of paragraphs, I will create a list of videos and articles I find helpful. First off what is Webpack? I found this video to be very helpful.
Customize Bootstrap 4 with Webpack | Webpack tutorials
Webpack 4 Tutorial – Getting Started for Beginners