text: var path = require('path')
  var webpack = require('webpack')
  const VueLoaderPlugin = require('vue-loader/lib/plugin')
  
  function resolve (dir) {
    return path.join(__dirname, dir)
  }
  
  module.exports = {
  
    mode: 'production',
  
    entry: './src/main.js',
  
    output: {
      path: path.resolve(__dirname, './dist'),
      publicPath: '/dist/',
      filename: 'build.js'
    },
  
    module: {
      rules: [
        {
          test: /\.vue$/,
          loader: 'vue-loader',
          options: {
            loaders: {
              'css': 'vue-style-loader!css-loader',
              'scss': 'vue-style-loader!css-loader!sass-loader',
              'sass': 'vue-style-loader!css-loader!sass-loader?indentedSyntax'
            }
          }
        },
        {
          test: /\.scss$/,
          use: [
            {
              loader: 'style-loader'
            },
            {
              loader: 'css-loader'
            },
            {
              loader: 'sass-loader'
            }
          ]
        },
        {
          test: /\.js$/,
          loader: 'babel-loader',
          exclude: /node_modules/
        }
      ]
    },
  
    resolve: {
      modules: [
        'node_modules'
      ],
  
      alias: {
        'vue$': 'vue/dist/vue.esm.js',
        'plugin': path.resolve(__dirname, "../dist/vue-c3.min.js")
      }
    },
  
    devServer: {
      historyApiFallback: true,
      noInfo: true
    },
  
    performance: {
      hints: false
    },
  
    devtool: '#eval-source-map',
  
    plugins: [
      new webpack.DefinePlugin({
        'process.env.NODE_ENV': '"production"'
      }),
      new VueLoaderPlugin()
    ]
  }
  