title: How to include jQuery properly in angular cli 1.0.0-rc.0?
body: <p>I use jQuery-based select2 component in my AngularJS project. I had similar issue as guys here: <a href="https://github.com/fronteed/icheck/issues/322" rel="noreferrer">https://github.com/fronteed/icheck/issues/322</a>, and solved it using advice from there. To be accurate, I received error <code>TypeError: $(...).select2 is not a function</code> when not using that advice.</p>
  
  <p>i.e. I added next lines to configuration of Webpack in <code>@angular/cli/models/webpack-configs/common.js</code>.</p>
  
  <pre><code>plugins: [
    new webpack.ProvidePlugin({
        $: "jquery",
        jQuery: "jquery"
      })
  ]
  </code></pre>
  
  <p>Is it the best possible way to enable jQuery in angular/cli?</p>
  
  <p>I don't think that doing same as in <a href="https://github.com/angular/angular-cli/wiki/stories-global-lib" rel="noreferrer">https://github.com/angular/angular-cli/wiki/stories-global-lib</a> is correct way, because </p>
  
  <p>a) webpack bundles jQuery without need to specify it in scripts </p>
  
  <p>b) it still throws <code>TypeError: $(...).select2 is not a function</code> error when you include it as described in story.</p>