title: webpack: implement zeptojs into the build
body: <p>I'm trying to add ZeptoJS into my webpack vendor bundle but I keep getting an error stating: </p>
  
  <blockquote>
    <p>"Uncaught TypeError: Cannot read property 'createElement' of undefined(…)</p>
  </blockquote>
  
  <p>I checked the zepto.js sourcecode and it's complaining at this line:</p>
  
  <pre><code>table = document.createElement('table')  &lt;-- 'document' is undefined
  </code></pre>
  
  <p>Here's a snippet of my webpack config:</p>
  
  <p>...</p>
  
  <pre><code>config.entry.vendor = ['zepto']
  
  config.module.loaders.push({
    test: require.resolve('zepto/dist/zepto.min.js'),
    loader: 'exports?window.$!script'
  });
  
  config.plugins.push(new webpack.ProvidePlugin({
    $: 'zepto'
  }));
  </code></pre>
  
  <p>The vendor.js is loaded on the load EVENT.</p>
  
  <p>Has anyone encounter this issue before and provide suggestions on how I can get this to work? Thank you.</p>