text: const path = require('path')
  const VueLoaderPlugin = require('vue-loader/lib/plugin')
  
  module.exports = {
    resolve: {
      extensions: ['.js', '.vue', '.json'],
      alias: {
        '@': path.join(__dirname, '..', 'src')
      }
    },
    module: {
      rules: [
        {
          test: /\.vue$/,
          use: [
            {
              loader: 'vue-loader',
              options: {
              }
            }
          ]
        },
        {
          test: /\.(sa|sc|c)ss$/,
          use: ['vue-style-loader', 'css-loader', 'postcss-loader', 'sass-loader']
        },
        {
          test: /\.js$/,
          use: ['babel-loader'],
          exclude: /node_modules/
        },
        {
          test: /\.(png|jpg|gif|svg)$/,
          use: [
            {
              loader: 'file-loader',
              options: {
                name: '[name].[ext]?[hash]'
              }
            }
          ]
        }
      ]
    },
    plugins: [
      new VueLoaderPlugin()
    ]
  }
  