text: const path = require('path');
  const webpack = require('webpack');
  const HTMLWebpackPlugin = require('html-webpack-plugin');
  const uglifyJsPlugin = require('uglifyjs-webpack-plugin');
  const { VueLoaderPlugin } = require("vue-loader");
  
  module.exports = {
      entry: './src/index.js',
      output: {
          library: 'VisualCR',
          libraryTarget: 'umd',
          libraryExport: 'default',
          path: path.resolve(__dirname, 'dist'),
          filename: 'index.js'
      },
      module: {
          rules: [
              {
                  test: /\.js$/,
                  exclude: /node_modules/,
                  use: ['babel-loader']
              },
              {
                  test: /\.scss$/,
                  use: [
                      'style-loader',
                      'css-loader',
                      'postcss-loader',
                      'sass-loader'
                  ]
              },
              {
                  test: /\.vue$/,
                  exclude: /node_modules/,
                  use: ['vue-loader']
              },
          ]
      },
      resolve: {
          extensions: ['.js', '.vue', '.json'],
          alias: {
              'vue$': 'vue/dist/vue.esm.js',
          }
      },
      plugins: [
          new uglifyJsPlugin(),
          new VueLoaderPlugin(),
          new HTMLWebpackPlugin({
              template: path.resolve(__dirname, 'index.html')
          }),
          new webpack.HotModuleReplacementPlugin(),
      ]
  };
  