Current behavior:
A html bundle using the config property htmlimport: true and the option rev: true doesn't append a revision number to the file name. See config below.
Expected/desired behavior:
The filename of the bundled html templates contains a generated revision number.
What is the expected behavior?
Is this question doubled in the template for any reason? May you should remove one of those.
What is the motivation / use case for changing the behavior?
Without a revision number the browser cache can deliver an outdated version of that html file even when it changed. This can break the application layout.
To fix that problem the utility function getOutFileName(content: Sting, fileName: String, revision: Boolean) should be used to get the filename for the bundle. Also the check if the bundle exists already should be done after bundling because the content is required to generate the hash and the hash is required to generate the filename and the filename is required to check if the file exists obviously^^
I'm submitting a bug report
Please tell us about your environment:
Current behavior: A html bundle using the config property
htmlimport: true
and the optionrev: true
doesn't append a revision number to the file name. See config below.Expected/desired behavior: The filename of the bundled html templates contains a generated revision number.
Here's my example config:
To fix that problem the utility function
getOutFileName(content: Sting, fileName: String, revision: Boolean)
should be used to get the filename for the bundle. Also the check if the bundle exists already should be done after bundling because the content is required to generate the hash and the hash is required to generate the filename and the filename is required to check if the file exists obviously^^