You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
({'name': 'foo/main','out': '../build/foo.min.js',// just for debug'optimize': 'none','mainConfigFile': 'foo.js','include': [],'insertRequire': ['foo/main'],'optimizeAllPluginResources': true,// stubModules can be used to remove unneeded plugins after build'stubModules': ['text','async','font','jsn','propertyParser','normalize','css-builder'],'onModuleBundleComplete': function(data){module.paths.push('./node_modules');try{varfs=module.require('fs'),amdclean=module.require('amdclean'),outputFile=data.path,cleanedCode=amdclean.clean({'filePath': outputFile});fs.writeFileSync(outputFile,cleanedCode);}catch(e){console.info(e.message);}}});
as far as I understand, I have to include config file (require.config) into my build file. Is it enough to pu there mainConfigFile? Could you, @gfranko help us to create stub build.js file for requirejs with maps? Thanks in advance.
@see http://requirejs.org/docs/api.html#config-map
ie:
I guess it doesn't or I'm doing something wrong...
The text was updated successfully, but these errors were encountered: