ajbrown / angular-loggly-logger

An AngularJS module which sends your $log message to loggly, and provides a service for manually sending messages to loggly.
MIT License
32 stars 49 forks source link

RequireJS Only? #40

Closed esetnik closed 8 years ago

esetnik commented 8 years ago

The provided installation instructions don't include an alternative for those who don't have require. To get this plugin to work I had to tweak my bower.json overrides to include:

    "angular-loggly-logger": {
      "main": [
        "angular-loggly-logger.js"
      ]
    }

to get main-bower-files to inject the right file. Then I specified the module dependency like:

angular
    .module('xxx', [
        'logglyLogger.logger'
    ]);

and now it works. Maybe this can serve as some helpful documentation for those looking to install as a bower dependency using gulp.

ajbrown commented 8 years ago

bower.json now specifies angular-loggly-logger.js as the main file instead of index.js.

NPM will continue to use index.js