It's the first time I am looking for a javascript build tool, so the very known are gulp, grunt, webpack... the main thing I need is to separate my big js file into separate files and automate the minifying process into one output file. one other thing is that I still need support for IE8 in my library but I've heard that these tool have issues with IE8 (older browsers generally), is that true ? what tool is recommended in my case ?
Asked
Active
Viewed 66 times
-3
-
1The only recommendation is to not support IE(8). – nhaa123 Apr 20 '16 at 11:36
-
why do you want to split a big JS-file apart, just to concat these parts again? why not minifying the whole thing? – Thomas Apr 20 '16 at 11:56
-
@Thomas it's a pain to maintain :) – medBouzid Apr 20 '16 at 11:57
-
then split the JS in the first place into different files, so you can handle it. it's no problem to concat them later; but it sounded like you would want the build-step to split them, just to concat them again a moment later. – Thomas Apr 20 '16 at 11:59
-
@Thomas do you mean contact them manually ? – medBouzid Apr 20 '16 at 12:01
-
no, I mean to split them manually, into the structure you want. concatenating is easy, there are plenty of plugins for that, even most minifyer can do that. – Thomas Apr 20 '16 at 20:30
1 Answers
1
Build system have nothing to do with browser support.

Cezary Daniel Nowak
- 1,096
- 13
- 21
-
-
@medBo you are mixing things up: a build-system and a JS-preprocessor ain't the same thing, although you often use build-systems to run jour code through the proprocessor – Thomas Apr 20 '16 at 11:57
-
@Thomas I know the difference, I was just asking him because I was thinking about using babel and switch to es6 too – medBouzid Apr 20 '16 at 12:00
-
Babel is transpiling ES6 to ES5 but does not add functions like Object.assign, Array.from etc. That's why you should trigger require('babel-polyfill') on front-end. – Cezary Daniel Nowak Apr 20 '16 at 12:24