3 ms·
this is a bit narrow minded view of things. let's start adding the complexity shall we? need to use sass? let's start adding a scss loader. should we use module
by westoque 6y ago
this is a bit narrow minded view of things. let's start adding the complexity shall we? need to use sass? let's start adding a scss loader. should we use modules in the JS files or compile everything into 1 file? what if we compile different css into another css file for our admin only layouts? should we use the "fiber" module to speed things up? how about images? let's add another loader, should we use svg/png/jpg file types? now, if all those files are included in JS, how do i access them in the CSS? in the HTML? in the JS? it's not as trivial is it? just imagine a person coming from bootcamp trying to learn all those things.
- robertoandred 6y agoYou don't need to add a loader for any of that.
- searchableguy 6y agoNo one is stopping you from using an asset folder and doing it like you did before. You want to pre-optimize images that's why you are hopefully doing it. Support for others is inbuilt. Why transpile to single files? It will be faster to have many smaller files for http2 speed up. Bootcamp also teaches those concepts nowadays. They are different than what they used to be. Check frontend masters, egghead etc.