1.0.0 • Published 10 years ago

ng-name-loader v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

ng-name-loader

Webpack loader to export angular.js module name

Usage

require('ng-name?file!./file.js');
// adds following code to file.js source:
//  module.exports = 'file';

Example

// foo.js
angular.module('foo', []).controller('Foo', function Foo () {});

// app.js
angular.module('app', [
  require('ng-name?foo!./foo.js')
]);

Documentation: Using loaders

License

MIT (http://www.opensource.org/licenses/mit-license.php)