title: Materialize jQuery functions not working in Webpack application
body: <p>I recently migrated my project from Meteor to Webpack and am experiencing errors when trying to use Materialize.css to build my UI. The custom materialize functions, such as <code>$(...).tooltip</code>, causes an Uncaught TypeError to be thrown in the console. This does not allow me to use Materialize in my app.</p>
  
  <p>Anyone else experience these kinds of errors when trying to use Materialize in a webpack application? Any direction on how to solve these problems would be much appreciated. Thanks!</p>
  
  <p>The code I use to load the Materialize module and its dependencies in the index.js at the root of the directory is below. </p>
  
  <p>index.js:</p>
  
  <pre><code>import 'materialize-loader';
  import 'materialize-css/dist/css/materialize.css';
  window.jQuery = require('jquery');
  window.$ = require('jquery');
  import 'materialize-css/dist/js/materialize.js';
  import 'materialize-css/js/init.js';
  </code></pre>