Questions tagged [dojo-build]

Questions about Dojo Build system, allowing to merge multiple modules into single files, therefore creating compact release.

Dojo build system allows to merge multiple Javascript modules into single files, and inline CSS imports. It is used for creating release distributions, which contains a few big files instead of a few hundred small modules.

The documentation about Dojo build:

65 questions
11
votes
1 answer

How does a minimum build configuration for dojo look like?

I studied the build tutorial, found the web build (1.7.2 only), and tested several examples - however, I could not find an easy explanation of the build system. Let's say my app is a single web page:
Maximilian Hils
  • 6,309
  • 3
  • 27
  • 46
9
votes
2 answers

Dojo 1.7 custom build - How to remove unused files from the release folder

I have used the below (1.7) custom build profile to build my release folder. var profile = { basePath: "..", action: "release", cssOptimize: "comments", mini: true, optimize: "closure", layerOptimize: "closure", stripConsole: "all", selectorEngine:…
sokid
  • 813
  • 3
  • 10
  • 16
8
votes
3 answers

Dojo 1.9 build 'multipleDefine' error while loading locale

My dojo application breaks after building, during loading the app, throwing 'multipleDefine' and giving this error: Error {src: "dojoLoader", info: Object} Message: multipleDefine info: Object {pid: "dojo", mid: "dojo/nls/dojo_en-us", pack:…
nvd_ai
  • 1,060
  • 11
  • 20
6
votes
1 answer

Dojo build profile.layers vs. profile.dependencies.layers?

Wow, this is totally confusing and the dojo 1.8 documentation seems a complete clusterf**k around build layers. Anybody have a clue what's going on there? In the build script example profiles, the example amd.profile.js has…
danorton
  • 11,804
  • 7
  • 44
  • 52
6
votes
2 answers

Dojo Builds...? What now?

A while back, I looked into a solution for the "flash of unstyled content" when using Dojo and Dojo themes. Someone suggested to combine everything by creating a build, and it'll reduce the load/parse time and remove the need to use preloader…
Phix
  • 9,364
  • 4
  • 35
  • 62
5
votes
3 answers

DOJO build that does not include DOJO base

Is this possible using v1.6.1? Due to the Xdomain configuration of my client's dojo deployment, it is necessary to execute a new build each time dev code changes. As you can imagine, this is a huge time waster. From everything I can see there is no…
4
votes
1 answer

Dojo build css and custom javascript

I've set up a single html page that uses three dojo widgets and I'm trying to create a custom build from it using dojo 1.7.5. The build succeeds leaving me with a dojo.js that includes the files I need using this build file: var dependencies =…
Remco
  • 172
  • 9
4
votes
2 answers

How to use custom build from dojo under file:/// protocol (Cordova/Phonegap)

I develop a web app using the dojo framework. This app must be loaded by a browser using the file:/// protocol (It will become a Cordova/Phonegap application for Android/iPad). The index.html file looks like: Head section:
4
votes
1 answer

Speeding up the Dojo Build

We are running a build of our application using Dojo 1.9 and the build itself is taking an inordinate amount of time to complete. Somewhere along the lines of 10-15 minutes. Our application is not huge by any means. Maybe 150K LOC. Nothing fancy.…
sma
  • 9,449
  • 8
  • 51
  • 80
4
votes
1 answer

Dojo build profile no dojo layer (>1.7)

I have a dojo build profile that builds two layers- one layer dojo/dojo layer and another layer for my app files. This all works fine and results in two "big" files (main.js and dojo.js) which contains all the required code. However, I don't really…
4
votes
1 answer

Dojo build -> dojo.require(); still needed?

this was my first dojo build so please excuse my ignorance in this matter. I've just created my custom build from dojo build system using the following (very simplified) profile: dependencies = { stripConsole: "normal", layers: [ { …
belzebu
  • 810
  • 7
  • 25
3
votes
1 answer

Building dojo app: layer downloads but not load

I'm trying to built a Dojo app using the building system it provides. I have a main index.php file loading the dojo, dijit and dojox libraries The structure of the project is something like: --root --_profile --_release --dojo-1.3.2-src …
luso
  • 2,812
  • 6
  • 35
  • 50
3
votes
1 answer

Combine all my custom JS into one single file with dojo build

I'm having a hard time trying to set up dojo build in my project. Basically, I have my js folder with all my custom widgets and components. I simply want to combine all javascript files form js folder into one single file. dojo sources are located…
user949050
  • 55
  • 4
3
votes
0 answers

i18n getLocalization returns undefined on first call when using Dojo Build

I've recently observed some strange behaviour with built version of my dojo applications. Some buttons have 'undefined' label. Such behaviour exists only in the version built by Dojo Build. After exact inspection it happens, that the first call is…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
3
votes
3 answers

Dojo Build Failing for One Module: OPTIMIZER FAILED: InternalError: missing name after . operator

I am successfully building my project using the Dojo Build tool. However, I have one module squad_builder/Pilot that causes the build to fail whenever I include it, giving the following error: error(356) The optimizer threw an exception; the module…
voidstate
  • 7,937
  • 4
  • 40
  • 52
1
2 3 4 5