1.3.0 • Published 8 years ago
ts-brunch v1.3.0
TimeStamp Brunch
Add timestamp to avoid the cache. JS/CSS
npm i timestamp-brunch -saveExample
Config :
"plugins": {
"timestampbrunch" : {
"environments" : ["dev", "production"],
"referenceFiles" : "index.html",
"suffix" : "min"
}
}Brunch build
brunch build -e devThis 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.