Closed mickaeltr closed 11 years ago
Setting the output directory should be possible via the require.js config file. Can you post the contents of the file referenced by the plugin's configFile option?
That's correct! I somehow missed this option :
//The directory path to save the output. If not specified, then //the path will default to be a directory called "build" as a sibling //to the build file. All relative paths are relative to the build file. dir: "../some/path",
(source : https://github.com/jrburke/r.js/blob/master/build/example.build.js)
Sorry about that.
Hi,
I think it would be handy to have control over the output directory of the optimized files, through an extra option (such as yuicompressor does, for instance).
The problem I currently have is that my optimized file is replaced by the non-optimized files when packaging, because output directories are identical. With an "outputDirectory" option, I could have my optimized file generated in a dedicated folder, then add it to the package as external WAR resource.
What do you think? Do you know any better strategy for adding optimized files in the final WAR ?
Thanks.