Skip to content

Instantly share code, notes, and snippets.

@cmacaulay
Created February 27, 2017 04:26
Show Gist options
  • Select an option

  • Save cmacaulay/4738215c5aa756d1bb29a0102e3eebbc to your computer and use it in GitHub Desktop.

Select an option

Save cmacaulay/4738215c5aa756d1bb29a0102e3eebbc to your computer and use it in GitHub Desktop.

What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files? Adding all files into one file. What does it mean to precompile files? What does this have to do with coffeescript and sass files? Coffee script - compiles java Sass - compiles css What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files? Takes away white space Start up the server for Catch ‘em All (rails s) and navigate to http://localhost:3000/assets/application.js. Then open up the code for application.js in your text editor. Why are these not the same? What is a manifest (in terms of the asset pipeline)? Where can you find two manifests in Catch ‘em All? In regular HTML files, we bring in css files with . How is this done in a Rails project? Where do you see this line in Catch ‘em All? How is a digest/fingerprint used on the assets for caching purposes? Done? Take a look at RailsGuides: The Asset Pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment