title: how to merge all js files into one bundle webpack
body: <p>How to merge all js files into one? With minify in webpack 1.* ?</p>
  
  <p>Here is my part of webpack config</p>
  
  <pre><code>entry: {
      bundle: "./src/index.tsx",
      styles: './static/scss/main.scss',
  
      main : [
          './static/js/jquery.js',
          './static/js/bowser.js',
          './static/js/bootstrap.js',
          './static/js/jquery.resizeend.js',
          './static/js/slick.js',
          './static/js/jquery.waypoints.js',
          './static/js/jquery.backgroundpos.js',
          './static/js/jquery.fancybox.js',
          './static/js/select2.full.js',
          './static/js/jquery.mousewheel.js',
          './static/js/clipboard.js',
          './static/js/circle-progress.js',
          './static/js/common.js',
          './static/js/main.js'
      ]
  },
  output: {
      filename: "[name].js",
      path: "../root/js/react",
      library: '[name]'
  },
  </code></pre>
  
  <p>after build all js files are minified but i have problems with these dependencies : </p>
  
  <p>bootstrap can't find jquery</p>
  
  <pre><code>Uncaught Error: Bootstrap's JavaScript requires jQuery
      at Object.1213 (main.js:3)
      at t (main.js:1)
      at Object.0 (main.js:1)
      at t (main.js:1)
      at main.0 (main.js:1)
      at main.js:1
  </code></pre>
  
  <p>Note: Jquery comes before bootstrap so it should be ok </p>