Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

web-resources

caiyunCheng September 17, 2020

I want to add many .js and .css files  ,  can I write then like this ?   

location="sample/*.js"

<web-resource key="my-sources" name="sources-demo">
<resource type="download" name="sample.css" location="sample/sample.css" />
<resource type="download" name="self.js" location="sample/self.js" />
<resource type="download" location="sample/*.js" />

</web-resource>

 

1 answer

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
September 17, 2020

hi @caiyunCheng I think you can't do it. But you can setup your build process to minimize and combine all your JS resources to one file. I am not JS expert and I never set it up, but try to check this article https://medium.com/programming-sharing/minifying-and-combining-js-and-css-files-with-maven-b8a661bf6bf8.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events