Javascript and CSS Minify

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!

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

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.

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

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.