Skip to content

Instantly share code, notes, and snippets.

@TikiTDO
Created April 20, 2016 11:03
Show Gist options
  • Save TikiTDO/13fa92c7546bf5753db81ba342acd1b5 to your computer and use it in GitHub Desktop.
Save TikiTDO/13fa92c7546bf5753db81ba342acd1b5 to your computer and use it in GitHub Desktop.
A list of directives that can be used in ruby sprockets manifest files
// Includes one file
//= require name/path[.ext]
// Includes files in one directory, but not nested
//= require_directory path
// Includes all nested files
//= require_tree path
// Adds the requested asset to the list of assets to be compiled
//= link name/path[.ext]
// Link all the files in specified directory, but not nested. May specify an explicit extension
//= link_directory path [.ext]
// Link all the nested files in specified directory. May specify an explicit extension
//= link_tree path [.ext]
// Create a recompile dependency on a file that's not included through other directives
//= depend_on name/path[.ext]
// Same as above, but must be an asset
//= depend_on_asset name/path[.ext]
// Blacklist an asset, so it can not be required later
//= stub name/path[.ext]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment