blutorange / closure-compiler-maven-plugin

Combine and minimize JavaScript with Closure Compiler.
http://blutorange.github.com/closure-compiler-maven-plugin
Apache License 2.0
52 stars 6 forks source link

multiple target folder for minified css and js files #17

Closed blutorange closed 6 years ago

blutorange commented 6 years ago

Issue by leosignking Friday Jan 13, 2017 at 22:32 GMT Originally opened as https://github.com/samaxes/minify-maven-plugin/issues/136


I am working on a project where I need to minify multiple js and css files and copy to different directories. How do I achieve it? I used "cssTargetDir" but all the minified will be moved to one directory instead, I need the minified to copy to different folders.

src/main/resources/static/css/1.css src/main/resources/static/css/2.css

src/main/resources/static/js/1.js src/main/resources/static/js/2.js

Final out directory

target/web-resources/assets/js/1/1.min.js target/web-resources/assets/js/2/2.min.js

blutorange commented 6 years ago

Comment by ehimsi Wednesday Oct 11, 2017 at 09:29 GMT


any idea on this?

blutorange commented 6 years ago

To merge+minify some files to one target directory and some to another, you can use multiple executions.