The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

TAGS
AUG Leaders

Atlassian Community Events