-
Notifications
You must be signed in to change notification settings - Fork 31
JavaScript Concatenation? #41
Comments
If you're using the default .hugulprc, try putting your js files in assets/scripts. Does that work ? |
You know what, you're absolutely right. In watch mode, it does jshint only. In build mode, It's uglifying each individual file, but it's not concatenating it. I'll probably have some time to fix it by the weekend. It's a small change .pipe(uglify())
+ .pipe(concat('scripts.js'))
.pipe(size({ title: 'scripts: ' })) right around here https://github.com/jbrodriguez/hugulp/blob/master/gulp/build.js#L91 |
Bingo. Works like a champ! Thanks! If I wasnt such a Node/Gulp newbie I would have found that myself! I assume that this will just concat in filename order. Totally unrelated but it would be a pretty nice feature to be able to have it work like scss files: an underscore in the filename ignores it and then a script with includes makes ordering the files nice and simple. |
The README says:
I can't seem to figure out how to get JavaScript concatenation working. Compressing and fingerprinting are working fine but not concatenation. Is there something undocumented that allows this?
The text was updated successfully, but these errors were encountered: