timestamp-brunch

1.0.0 • Public • Published

TimeStamp Brunch

Add timestamp to avoid the cache. JS/CSS

npm i timestamp-brunch -save

Example

Config :

"plugins": {
  "timestampbrunch" : {
      "environments" : ["dev", "production"],
      "referenceFiles" : "index.html",
      "suffix" : "min"
  }
}

Brunch build

brunch build -e dev

This script tags will be compile

<script src="js/vendor.js"></script>
<script src="js/app.js"></script>

to

<script src="js/vendor-24179978.min.js"></script>
<script src="js/app-24179978.min.js"></script>

and the two new files will be created.

Package Sidebar

Install

npm i timestamp-brunch

Weekly Downloads

17

Version

1.0.0

License

none

Last publish

Collaborators

  • fabienl