RevolutionUC / revolutionuc-frontend

RevolutionUC's old front-end website
https://revolutionuc.com/
MIT License
3 stars 7 forks source link

Asset pipeline #3

Open isiah-lloyd opened 7 years ago

isiah-lloyd commented 7 years ago

Use Grunt, Gulp, or one of these: https://github.com/planetjekyll/awesome-jekyll-plugins#assets--converters--minifiers to minify our assets and have Travis CI run the script before deployment.

domfarolino commented 7 years ago

I'm going to kick myself for saying this, but it's worth looking into webpack for this since we use webpack in the current website for our JS, and it can perform the same asset minification as the tools listed above.

Edit

This is contingent on me getting the JS from the old site to work with the latest version of webpack, as I have not touched or updated the webpack dependency in a long time.

zacharysang commented 7 years ago

@isiah-lloyd If you guys are just looking for minification/ other simple image manipulation, have you considered using (Cloudinary)[https://cloudinary.com/]? You can upload all photos there and then include them via an img's src tag like: cloudinary.com/...../image/upload/h_HEIGHTVAL,w_WIDTH_VAL/.../IMG_FILE.jpg

There are other manipulations you can do here in terms of specifying file types, cropping, opacity, etc. While this means adding a remote dependency, it means that we can separate images out from our codebase by no longer keeping them in our git repo