client/lib/css-hot-reload/index.js
function bustHashForHrefs( { name, oldValue } ) {
	// http://some.site.com/and/a/path?with=a&query -> http://some.site.com/and/a/path?v=13508135781
	const value =
		'href' === name ? `${ oldValue.split( '?' ).shift() }?v=${ new Date().getTime() }` : oldValue;

	return { name, value };
}
function bustHashForHrefs( { name, oldValue } ) {
	// http://some.site.com/and/a/path?with=a&query -> http://some.site.com/and/a/path?v=13508135781
	const value =
		'href' === name ? `${ oldValue.split( '?' ).shift() }?v=${ new Date().getTime() }` : oldValue;

	return { name, value };
}
function bustHashForHrefs ( { name , oldValue } ) { // http://some.site.com/and/a/path?with=a&query -> http://some.site.com/and/a/path?v=13508135781 const value = 'href' === name ? ` ${ oldValue . split ( '?' ) . shift ( ) } ${ new Date ( ) . getTime ( ) } ` : oldValue ; return { name , value } ; }
Replaces the old hash parameter with the current timestamp if `name` is `href`.
@return {Object}
Replaces the old hash parameter with the current timestamp if name is href .