Skip to content

yavorsky/timestamp-brunch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.7%
  • HTML 1.3%