text: const HtmlWebpackPlugin = require('html-webpack-plugin')
  const VueLoaderPlugin = require('vue-loader/lib/plugin')
  const webpack = require('webpack')
  
  module.exports = {
    entry: './src/main.js',
    polyfill: '@babel/polyfill',
    module: {
      rules: [
        {
          test: /\.js$/,
          use: 'babel-loader'
        },
        {
          test: /\.vue$/,
          use: 'vue-loader'
        },
        {
          test: /\.css$/,
          use: ['vue-style-loader', 'css-loader']
        },
      ]
    },
    resolve: {
      alias: {
        'vue$': isDev ? 'vue/dist/vue.runtime.js' : 'vue/dist/vue.runtime.min.js',
        '@': helpers.root('src')
      },
      extensions: ['*', '.js', '.vue', '.json']
    },
    devServer: {
      open: true,
      hot: true
    },
    plugins: [
      new HtmlWebpackPlugin({
        template: './src/index.html',
      }),
      new VueLoaderPlugin(),
      new webpack.HotModuleReplacementPlugin()
    ]
  }
  