@pentia/asset-revving
v2.0.0
Published
Create environment specific references for frontend assets.
Downloads
6
Keywords
Readme
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.