ng-name-loader
v1.0.0
Published
Webpack loader to export angular.js module name
Downloads
8
Readme
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')
]);
License
MIT (http://www.opensource.org/licenses/mit-license.php)