# Javascript and CSS Minify

**URL:** <https://community.bloomreach.com/t/javascript-and-css-minify/2221>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [November 6, 2020, 12:07pm UTC](https://community.bloomreach.com/t/javascript-and-css-minify/2221 "2020-11-06T12:07:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alberto](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Alberto](https://community.bloomreach.com/u/Alberto)\
**Post date:** [November 6, 2020, 12:07pm UTC](https://community.bloomreach.com/t/javascript-and-css-minify/2221/1 "2020-11-06T12:07:29Z")

</div>

Hi Community,

I’m new to BrXM and I wanted to know which options do we have in order to minify css and javascript files that we’ve created inside BrXM 14.

Thank you!

---

<div class="post-metadata">

**Author:** ![jeroen.hoffman](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jeroen.hoffman/32/43_2.png) [@jeroen.hoffman](https://community.bloomreach.com/u/jeroen.hoffman)\
**Post date:** [November 9, 2020, 8:08am UTC](https://community.bloomreach.com/t/javascript-and-css-minify/2221/2 "2020-11-09T08:08:18Z")

</div>

Hi Alberto,  
What do mean with “created inside”? Is that an asset upload to a running instance somewhere or maybe part of the code base? Note that there is no out-of-the-box minify functionality, for building purposes you can use your favorite tools, maybe a Maven plugin.

Hope this helps, Jeroen

---

<div class="post-metadata">

**Author:** ![Alberto](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Alberto](https://community.bloomreach.com/u/Alberto)\
**Post date:** [November 10, 2020, 7:38am UTC](https://community.bloomreach.com/t/javascript-and-css-minify/2221/3 "2020-11-10T07:38:31Z")

</div>

Hi Jeroen,

I meant simple css and js files inside the repository-data project. Thank you, for your response I guess the best option is a maven plugin.

---

<div class="post-metadata">

**Author:** ![aoliva](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/aoliva/32/280_2.png) [@aoliva](https://community.bloomreach.com/u/aoliva)\
**Post date:** [November 18, 2021, 5:06am UTC](https://community.bloomreach.com/t/javascript-and-css-minify/2221/4 "2021-11-18T05:06:59Z")

</div>

There’s no OOTB functionality for CSS and JS Minification, maybe you could try something like this one:  
[https://samaxes.github.io/minify-maven-plugin/index.html](https://samaxes.github.io/minify-maven-plugin/index.html)

note that this one uses the YUI Compressor for the CSS.

Also you could try using something like webpack or gulp and integrate it to the project with maven.

Good luck!

Hope it helps.
