text: const path = require('path')
  const pkg = require('./package.json')
  const webpack = require('webpack')
  const CompressionPlugin = require('compression-webpack-plugin')
  
  module.exports = {
    entry: './src/index.js',
    output: {
      path: path.resolve(__dirname, 'dist'),
      filename: `${pkg.name}.js`,
      libraryTarget: 'umd',
      library: 'VueComponentObserver'
    },
    resolve: {
      alias: {
        '@': path.resolve(__dirname, 'src')
      }
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: {
            loader: "babel-loader"
          }
        }
      ]
    },
    plugins: [
      new webpack.BannerPlugin({
        banner: 'hash:[hash]'
      }),
      new CompressionPlugin()
    ]
  }