Closed adrianfish closed 5 years ago
Hi, thanks for reporting it. I see you also submitted a fix, I appreciate that. However, I'm not quite sure I understand the problem.
I tried to reproduce the issue by adding a new test, but it works fine for me (with and without merge/minify), see the example below.
Oh, I think the issue is that the option needs to be spelled outputFilename
(with a lowercase n). But in the documentation and the readme, it is sometimes spelled with a capital N
(outputFileName
).
I'll update the documentation. Does it work for you if you spell it outputFilename
?
I realised after a while that the param was spelt differently, however, what I was trying to do was just pass the filename I wanted, without the tokens, and bypass the interpolator in that scenario. Maybe I was just using it wrong :)
Hmm, thanks for checking. Just passing a filename should work, see the example above (if there are no placeholders, nothing is interpolated). How did you configure the plugin in the pom.xml
?
<configuration>
<skipMerge>false</skipMerge>
<skipMinify>false</skipMinify>
<outputFilename>merge+minify.js</outputFilename>
</configuration>
You're totall right! I must have got tangled up when using outputFileName and written that code at that point, before trying outputFilename. I'm closing this. Thanks for the good work on this project, keeping up with the latest Closure version.
I'm glad it works now for you. But thanks anyway, I updated the docs to clear up the confusion with the name.
If you set outputFileName you would expect that the final, merged and minified file would be called that, but it is always script.min.js. This means I have to apply another maven plugin to change that name and it is non descriptive.