text: const path = require('path')
  const webpack = require('webpack')
  const webpackHotMiddlewareConfig = 'webpack-hot-middleware/client?path=/__webpack_hmr&timeout=20000'
  const getEntries = require('./getEntries')
  
  module.exports = {
      context: path.resolve(__dirname, '../'),
      output: {
          path: path.resolve(__dirname, '../public'),
          publicPath: '/',
          filename: 'js/[name].js',
          chunkFilename: 'js/[name].js'
      },
      resolve: {
          extensions: ['.js', '.vue']
      },
      resolveLoader: {
          // root: path.join(__dirname, 'node_modules'),
      },
      module: {
          loaders: [{
              test: /\.vue$/,
              loader: 'vue'
          }, {
              test: /\.js$/,
              loader: 'babel',
              exclude: /node_modules/
          }, {
              test: /\.(png|jpg|gif|svg)$/,
              loader: 'file',
              query: {
                  name: '[name].[ext]?[hash]'
              }
          }]
      },
      vue: {
          postcss: [
              require('autoprefixer')({
                  browsers: ['last 3 versions']
              })
          ]
      },
      plugins: [
          new webpack.optimize.OccurrenceOrderPlugin(),
          new webpack.HotModuleReplacementPlugin(),
          new webpack.NoErrorsPlugin()
      ],
  }