techjacker / node-version-assets

Version your static assets with MD5 hashes using node.js
MIT License
63 stars 11 forks source link

Other #12

Closed Gionni closed 8 years ago

Gionni commented 10 years ago

Hi,

great tool. Is there a way to incorporate any compress/uglify service on the fly or I gotta use another tool for that?

Thanks, Johnny

techjacker commented 10 years ago

No you need to use another tool for that. Gulp is the best one out there at the moment in my opinion.

One thing I would mention is that you should apply the versioning as the very last step (ie to the compressed assets) as the file renaming is based upon the file's contents.

Thanks for the positive feedback :)

Gionni commented 10 years ago

You're welcome, it's true.

Ok, you mean gulp-uglify, don't you? I'm trying out node-minify (using UglifyJS2). Thanks.

techjacker commented 10 years ago

Thanks, yes I meant gulp-uglify. I've not used node-minify but the uglifyjs package has also worked well for me as well.