text: const path = require('path')
  const VueLoaderPlugin = require('vue-loader/lib/plugin')
  
  const config = {
    mode: 'production',
    entry: {
      app: path.resolve(__dirname, '../src/client-entry.js'),
      vendor: ['vue', 'vue-router', 'vuex', 'axios']
    },
    module: {
      rules: [
        {
          enforce: 'pre',
          test: /(\.js$)\/ | \/\.vue$/,
          loader: 'eslint-loader',
          exclude: /node_modules/
        },
        {
          test: /\.vue$/,
          loader: 'vue-loader'
        },
        {
          test: /\.s[a|c]ss$/,
          loader: 'style-loader!css-loader!sass-loader'
        },
        {
          test: /\.js$/,
          loader: 'babel-loader',
          exclude: /node_modules/
        }
      ]
    },
    output: {
      path: path.resolve(__dirname, '../dist'),
      publicPath: '/',
      filename: 'assets/js/[name].js'
    },
    plugins: [
      new VueLoaderPlugin()
    ]
  }
  
  module.exports = config
  