title: Generate single output bundle.js with Vue's default webpack config
body: <p>I'm using webpack config generated by vue. This produces 3 javascript files to <code>./dist/</code> directory during the build: <code>app.js</code>, <code>manifest.js</code> and <code>vendor.js</code>. And all of those files are included in <code>index.html</code> as <code>&lt;script&gt;</code>. How do I configure webpack to generate only single <code>bundle.js</code> that contains all of those? </p>
  
  <p>Default vue's config for webpack is huge, so I barely can understand what's going on there. I attached below below <strong>webpack.base.conf.js</strong>. All other files you will find if you create vue's app: <code>npm install -g vue-cli</code>, <code>vue init webpack myapp</code> (vue/router/eslink/karma/nightwatch click to NO). They are located in <code>./build</code> and <code>./config</code> directories.</p>
  
  <pre class="lang-js prettyprint-override"><code>var path = require('path')
  var utils = require('./utils')
  var config = require('../config')
  var vueLoaderConfig = require('./vue-loader.conf')
  
  function resolve (dir) {
    return path.join(__dirname, '..', dir)
  }
  
  module.exports = {
    entry: {
      app: './src/main.js'
    },
    output: {
      path: config.build.assetsRoot,
      filename: '[name].js',
      publicPath: process.env.NODE_ENV === 'production'
        ? config.build.assetsPublicPath
        : config.dev.assetsPublicPath
    },
    resolve: {
      extensions: ['.js', '.vue', '.json'],
      alias: {
        'vue$': 'vue/dist/vue.esm.js',
        '@': resolve('src')
      }
    },
    module: {
      rules: [
        {
          test: /\.vue$/,
          loader: 'vue-loader',
          options: vueLoaderConfig
        },
        {
          test: /\.js$/,
          loader: 'babel-loader',
          include: [resolve('src'), resolve('test')]
        },
        {
          test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
          loader: 'url-loader',
          options: {
            limit: 10000,
            name: utils.assetsPath('img/[name].[hash:7].[ext]')
          }
        },
        {
          test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
          loader: 'url-loader',
          options: {
            limit: 10000,
            name: utils.assetsPath('media/[name].[hash:7].[ext]')
          }
        },
        {
          test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
          loader: 'url-loader',
          options: {
            limit: 10000,
            name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
          }
        }
      ]
    }
  }
  </code></pre>