Skip to content

Instantly share code, notes, and snippets.

@xTMNTxRaphaelx
Created September 27, 2017 05:06
Show Gist options
  • Save xTMNTxRaphaelx/11685c34d77fab6a2a3387e7dfd4a944 to your computer and use it in GitHub Desktop.
Save xTMNTxRaphaelx/11685c34d77fab6a2a3387e7dfd4a944 to your computer and use it in GitHub Desktop.
({
// rename this to whatever the front-end files directory is
// rename this to the front end files JavaScript directory
baseUrl: "./src/js",
// rename this to whatever the distribution directory you want is
/**
* `r.js` needs to know where `require.config` is called ahead of time
* rather than just having it be included automatically by data-main
*
* This is done so that shim definitions can be ready and `angular` will
* be properly defined as a module
*/
mainConfigFile: "src/js/requireJSConfig.js",
optimize: 'uglify2',
uglify2: {
mangle: false
},
out: "src/main.js",
name: 'requireJSConfig'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment