Indeed, it was more about whether the "html-template" supports own placeholders and versioning per se.
 
 
Gesendet: Dienstag, 12. Januar 2021 um 13:14 Uhr
Von: "Harbs" <[email protected]>
An: [email protected]
Betreff: Re: CSS & JS file versioning
I think the question was how to automatically insert the build number into the html (i.e.?v=12345678)
 
On Jan 12, 2021, at 1:41 PM, Carlos Rovira <[email protected]> wrote:
 
Hi,
 
I think you need "htmlTemplate" compiler option. This is how to use in Maven:
 
<htmlTemplate>${basedir}/target/_javascript_/bin/js-debug/jewel-example-index-template.html</htmlTemplate>
 
in command line:
 
-html-template=src/main/resources/jewel-example-index-template.html
 
or in asconfig:
 
"html-template": "src/main/resources/jewel-example-index-template.html"
 
HTH
 
Carlos
 
 
 
El mar, 12 ene 2021 a las 10:47, lol lol (<[email protected]>) escribió:
Hi All,
 
Is there any possibility defined that lets me define my own placeholders in the html-template?
For example im using an html template with the following line
 
    <link rel="stylesheet" type="text/css" href="">
 
Is there anything helpful already existing in the compiler so I can add a version to my css like so:
 
href="">${application}?v=12345678" />
 

Thank!
 
 
--
Carlos Rovira
Apache Member & Apache Royale PMC
Apache Software Foundation
 

Reply via email to