lemel
lemel

Reputation: 16

JAWR sorting order of nested files

Started to use JAWR to bundle my AngularJS files, but ran into an issue when it tried loading the files out of order.

My directory structure:

I would like it to load the files in this order: app.js, something.module.js, something.controller.js

It's currently loading the controller first, then the module; causing a nomod error (no module exits).

The docs say to use a .sorting file, but I can only get it to work if I make a .sorting file in each folder, where I really just want to make one at the root directory.

Is there a better way?

Upvotes: 0

Views: 93

Answers (1)

lemel
lemel

Reputation: 16

It seems that creating a .sorting file at each level is the only way to get it working.

Upvotes: 0

Related Questions