eriwen / gradle-js-plugin

Gradle plugin for working with JS
http://eriwen.github.io/gradle-js-plugin
Apache License 2.0
381 stars 113 forks source link

RequireJs with Config #120

Open kdtommy opened 8 years ago

kdtommy commented 8 years ago

I want to run the requireJs task with a config file.

requireJs {
    requirejs.buildprofile = new File("src/main/resources/requirejs-config.js")
}

The task runs with no errors, but there is no output file.

techbrew-mc commented 7 years ago

You need to set requireJs.dest (or requirejs.buildprofile.options.out) to specify your output file.

requireJs {
    requirejs.buildprofile = file("src/main/resources/requirejs-config.js")
    dest = file("build/webapp/js/main-all.js")
}