@pentia/asset-revving

2.0.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    1
  • 1.2.0
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @pentia/asset-revving

Weekly Downloads

1

Version

2.0.0

License

ISC

Last publish

Collaborators

  • opdrift
  • saturate
  • takeiteasyalan
  • pentia-it
  • pentia-eok