[Dojo-interest] Prevent Build Wrapping a File

Fergus Hadley ferg at voidstate.com
Sun Jun 29 09:54:05 EDT 2014


Dojo Build is wrapping my config.js file (containing dojoConfig) in a define call.

// wrapped by build app
define("squad_builder/config", ["dojo","dijit","dojox"], function(dojo,dijit,dojos){

In my build profile I have:

resourceTags: {
	amd: function( filename )
	{
		if( /^config\.js$/.test( filename ) )
		{
			return false;
		}

		return /\.js$/.test( filename );
	}
},

Shouldn’t that stop it being seen as an AMD file?

Is there another way of having the build leave this file alone?

Cheers

Fergus 

e: ferg at voidstate.com
b: travelswithtriplets.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20140629/f183e11e/attachment.htm 


More information about the Dojo-interest mailing list