Combine all my JS files into one file using dojo build
I am having a hard time trying to set up a dojo build in my project.
Basically, I have my js folder with all my custom widgets and components. I just want to combine all javascript files from the js folder into one file.
Sources are outside of this folder. The structure looks something like this:/public
/prod
/dojo-1.9
/dijit
/dojo
/dojox
/js
myScript1.js
myScript2.js
Do you have any ideas on how I should customize package.json and profile.js? The documentation doesn't seem to help, as all I get is an output folder with the same content as the js folder (no javascript added).
source to share
You can start by reading this article:
https://dojotoolkit.org/reference-guide/1.10/build/simpleExample.html
It provides a simplified overview of the dojo build system.
Additionally, there is a dojo template with a sample folder structure and profile.js
for a quick start here:
https://github.com/csnover/dojo-boilerplate
I would definitely suggest that you use a template as a start-up for your project, as it simplifies a lot of initial configurations.
source to share