Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Asset pipeline #3

Open
isiah-lloyd opened this issue Nov 28, 2017 · 2 comments
Open

Asset pipeline #3

isiah-lloyd opened this issue Nov 28, 2017 · 2 comments

Comments

@isiah-lloyd
Copy link
Contributor

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
Copy link
Contributor

domfarolino commented Nov 29, 2017

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
Copy link

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants