text: const path = require('path')
  const webpack = require('webpack')
  const VueLoaderPlugin = require('vue-loader/lib/plugin')
  // const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
  
  module.exports = {
      target: 'web',
      mode: 'production',
      entry: {
          app: ['vue', './src/app.js']
      },
      output: {
          path: path.join(__dirname, 'dist'),
          publicPath: '/',
          filename: 'app.js'
      },
      devServer: {
          contentBase: path.join(__dirname, 'dist'),
          publicPath: '/',
          host: "192.168.37.194",
          hot: true,
      },
      //devtool: 'source-map',
      module: {
          rules: [
              {
                  test: /\.js$/,
                  exclude: /node_modules/,
                  use: [
                      {
                          loader: 'babel-loader',
                          options: {
                              presets: ['@babel/preset-env']
                          }
                      },
                  ]
              },
              {
                  test: /\.vue$/,
                  loader: 'vue-loader'
              },
              {
                  test: /\.css$/,
                  use: [
                      'vue-style-loader',
                      {
                          loader: 'css-loader',
                          options: {
                              importLoaders: 1
                          }
                      },
                      'postcss-loader',
                  ]
              },
              {
                  test: /\.scss$/,
                  use: [
                      'vue-style-loader',
                      {
                          loader: 'css-loader',
                          options: {
                              importLoaders: 2
                          }
                      },
                      'postcss-loader',
                      'sass-loader'
                  ]
              }
          ]
      },
      plugins: [
          new webpack.DefinePlugin({'process.env.NODE_ENV': '"production"'}),
          new VueLoaderPlugin(),
          // new BundleAnalyzerPlugin(),
      ]
  }
  