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

'js' target dir is created even with a different targetDir #54

Closed lonemadmax closed 4 years ago

lonemadmax commented 4 years ago

This is just a cosmetic issue. An empty directory is created with the default target name when a different one is specified through the targetDir tag. The merged/minified files are correctly created in the specified target dir.

blutorange commented 4 years ago

Do you mean the option targetDir (which to defaults to js). It doesn't seem to be creating directories for me (and the default value js should be overwritten by maven before this plugin even gets to see it).

Can you post the your configuration from the pom.xml?

lonemadmax commented 4 years ago

:flushed: My fault, and my fault only.

The directory appeared when I was trying to move a project from samaxes' minify-maven-plugin to this one, so I 'obviously' blamed closure-compiler-maven-plugin. Too fast. I couldn't reproduce it while trying to set up a minimum pom (when will users learn to do that before opening an issue?), until I went back to having all plugins, including minify-maven-plugin for the css.

So there. It was minify-maven-plugin, running its js tasks with default values even though there's no js includes for it.

I'm sorry I made you waste time on this.

blutorange commented 4 years ago

No problem, you're welcome. It was a good opportunity to update closure-compiler to the latest version ; )

Since you're mentioning CSS, I'm personally using the warmuuh/libsass-maven-plugin, which gives you all the awesome features of a CSS preprocessor : )