text: const config = require("./webpack.config.base");
  const path = require("path");
  const webpack = require("webpack");
  const merge = require("webpack-merge");
  const helpers = require("./helpers");
  const DefinePlugin = require("webpack/lib/DefinePlugin");
  const WriteFilePlugin = require("write-file-webpack-plugin");
  const { defineEnv } = require("./webpack.common");
  const EvalSourceMapDevToolPlugin = require("webpack/lib/EvalSourceMapDevToolPlugin");
  
  const webpackMergeDll = merge.strategy({ plugins: "replace" });
  
  const ENV = "development";
  const host = "localhost";
  const port = process.env.PORT || 3178;
  
  module.exports = merge(config, {
      // devtool: "cheap-module-source-map",
      mode: "development",
      devServer: {
          host,
          port,
          stats: {
              // Angular emits warning which are spaming the console
              warnings: false,
          },
          clientLogLevel: "error",
      },
      output: {
          path: path.join(__dirname, "../build/"),
          filename: "[name].js",
          sourceMapFilename: "[name].js.map",
          chunkFilename: "[id].chunk.js",
      },
      module: {
          rules: [
              {
                  test: /\.scss$/,
                  loader: [
                      {
                          loader: "style-loader",
                          options: {
                              singleton: true,
                          },
                      },
                      "css-loader",
                      "sass-loader",
                  ],
              },
              {
                  test: /\.css$/,
                  loader: [
                      {
                          loader: "style-loader",
                          options: {
                              singleton: true,
                          },
                      },
                      "css-loader",
                  ],
              }
          ],
      },
      plugins: [
          new EvalSourceMapDevToolPlugin({
              moduleFilenameTemplate: "[resource-path]",
              sourceRoot: "webpack:///"
          }),
          defineEnv(ENV),
          new WriteFilePlugin({
              test: /vendor\/vs.*/
          }),
      ],
  });
  