title: How can I injector Angular module in webpack?
body: <p>I install <strong>ngRoute</strong> from <strong>npm</strong>, my webpack default load <code>default.js</code></p>
  
  <p><strong>webpack.config.js</strong></p>
  
  <pre><code>'use strict';
  
  var path = require('path'),
      webpack = require("webpack"),
      AngularPlugin = require('angular-webpack-plugin');
  
  module.exports = {
    resolve: {
      root: [path.join(__dirname, "bower_components")]
    },
    plugins: [
    new webpack.ResolverPlugin(
      [new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin("bower.json", ["main"])],
      ["normal", "loader"]
    ),
    new webpack.ProvidePlugin({
        $: "jquery",
        jQuery: "jquery",
        "windows.jQuery": "jquery",
        _: "underscore"
    }),
    new AngularPlugin()
    ],
    entry: {
      all: "./app/assets/javascript/default",
    },
    output: {
      path: __dirname + '/dist/assets/javascript',
      filename: "[name].bundle.js",
      chunkFilename: "[id].bundle.js"
    },
  }
  </code></pre>
  
  <p><strong>default.js</strong></p>
  
  <pre><code> // default.js
   'use strict';
  
   require('angular-route');
   require('./angularLoad')();
  </code></pre>
  
  <p><strong>angularLoad.js</strong></p>
  
  <pre><code>// angularLoad.js
  module.exports = function () {
     var app = angular.module('myApp', ['ngRoute']);
     app.controller('ctroe', function(){
       console.log("aaaaaaaaaaaa");
     });
  };
  </code></pre>
  
  <p>When I run webpack, get an error message:</p>
  
  <blockquote>
    <p>Module not found: Error: Cannot resolve module 'ngRoute' in....</p>
  </blockquote>
  
  <p>This error when the angular injection. Have any suggestions? Thanks everyone. :)</p>