Skip to content

Instantly share code, notes, and snippets.

@jstrimpel
Created August 15, 2012 00:40
Show Gist options
  • Save jstrimpel/3354257 to your computer and use it in GitHub Desktop.
Save jstrimpel/3354257 to your computer and use it in GitHub Desktop.
requirejs optimize build error
// main module
define(['core/text!template/main.html', 'js/foo', 'js/bar', 'js/baz'], function (template, foo, bar, baz) { });
// build.json used for optimize
{
"baseUrl": "./src/client",
"dir": "./web",
"name": "js/main",
"exclude": ["core/text"],
"paths": {
"core/moduleA": "empty:",
"core/view/moduleB": "empty:",
"core/moduleC": "empty:",
"core/moduleD": "empty:"
},
"removeCombined": true,
"inlineText": true,
"keepBuildDir": true,
"fileExclusionRegExp": "less|test",
"optimize": "uglify"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment