Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 748 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 748 Bytes

asset-revving

Will take something like this:

style.css

and turn it into something like this:

style---99e8daf2.css

(the postfixed hash is of course based on the current contents of the file)

options

env

(required)

Can be either development or production. This will decide whether or not we're doing hashing at all.

mode

(required)

Can be one of the following: css, requirejs-dev or requirejs-production.

css

Will create a html file suited to serve CSS-files.

Example:

<link rel="stylesheet" type="text/css" href="file/path/style.css" />

main

(optional)

The current file path for the main file for RequireJS scripts in development mode.