Skip to content

Instantly share code, notes, and snippets.

@timmywil
Created March 17, 2014 20:11
Show Gist options
  • Save timmywil/9607288 to your computer and use it in GitHub Desktop.
Save timmywil/9607288 to your computer and use it in GitHub Desktop.
Building an optimized module that goes blank.
{
"appDir": "./website/public/",
"baseUrl": "js",
"dir": "./build",
"optimizeCss": "standard",
"fileExclusionRegExp": "(?:^\\.)|node_modules",
"mainConfigFile": "./website/public/js/main.js",
"modules": [
{
"name": "main"
}
]
}
require({
paths: {
lodash: 'libs/lodash.compat'
}
}, [
'lodash'
], function(_) {
console.log(_);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment