ts-brunch

1.3.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.

/ts-brunch/

    Package Sidebar

    Install

    npm i ts-brunch

    Weekly Downloads

    375

    Version

    1.3.0

    License

    none

    Last publish

    Collaborators

    • aqson