text: const path = require("path");
  const VueLoader = require('vue-loader');
  const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
  
  module.exports = {
    entry: {
      lobby: "./front/lobby.js",
      main: "./front/main.js",
      editor: "./front/editor.js",
    },
    output: {
      filename: "[name].js",
      path: path.resolve(__dirname, "amstramdam/static/script")
    },
    resolve: {
      alias: {
        vue: "vue/dist/vue.runtime.esm-bundler.js",// + (process.env.NODE_ENV === "production" ? ".prod.js" : ".js")
      }
    },
    module: {
      rules: [
        {
          test: /\.css$/,
          use: [
            'style-loader',
            'css-loader'
          ]
        },
        {
          test: /\.png$/,
          use: [
            'file-loader'
          ]
        },
        {
          test: /\.vue$/,
          loader: "vue-loader",
        }
      ]
    },
    plugins: [
        new VueLoader.VueLoaderPlugin(),
    ],
    optimization: {
      minimize: true,
      minimizer: [
          new CssMinimizerPlugin(),
      ]
    }
  }