Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

randing89/ngrequire-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngrequire-webpack-plugin

Build Status Coverage Status Dependency Status

A webpack plugin to handle Angular module dependencies

#Example With configuration of new ngRequirePlugin([ './**/*.js' ])

./a.js

angular.module('a', [])
  .factory('test', function(){
  });

./b.js

angular.module('b', [])
  .controller('controllerB', function (test) {
    // Module 'a' will be automatically required.
    // And 'test' factory will also be the injected
  })

#Usage

For more detailed usage please see ./test

var ngRequirePlugin = require('ngrequire-webpack-plugin');

{
  plugins: [
    new ngRequirePlugin(['file path list for your angular modules. eg: src/**/*.js'])
  ]
}

About

A webpack plugin to handle Angular module dependencies

Resources

Stars

Watchers

Forks

Packages

No packages published