ts-brunch
v1.3.0
Published
Add timestamp to avoid the cache. JS/CSS
Downloads
1,208
Readme
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.