Skip to content

Instantly share code, notes, and snippets.

@tvpmb
Created September 26, 2012 17:38
Show Gist options
  • Save tvpmb/3789404 to your computer and use it in GitHub Desktop.
Save tvpmb/3789404 to your computer and use it in GitHub Desktop.
Google Analytics for RequireJS Build Process (GruntJS)
requirejs: {
// Include the main configuration file.
mainConfigFile: "app/config.js",
// Output file.
out: "dist/debug/require.js",
// Root application module.
name: "config",
// Do not wrap everything in an IIFE.
wrap: false,
// This is to allow GA to not be compiled in
paths: {
ga: "empty:"
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment