Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3912 | Rev 4052 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3912 Rev 4037
Línea 1... Línea 1...
1
const path = require("path");
1
const path = require("path");
2
const isDevelopment = process.env.NODE_ENV === "development";
2
const isDevelopment = process.env.NODE_ENV === "development";
3
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
3
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
4
const TerserPlugin = require("terser-webpack-plugin");
4
const TerserPlugin = require("terser-webpack-plugin");
-
 
5
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
Línea 5... Línea 6...
5
 
6
 
6
// Add paths while bundling
7
// Add paths while bundling
7
const paths = {
8
const paths = {
8
  dashboard: {
9
  dashboard: {
Línea 234... Línea 235...
234
    filename: "impersonateBundle.js",
235
    filename: "impersonateBundle.js",
235
  },
236
  },
236
};
237
};
Línea 237... Línea 238...
237
 
238
 
238
// change active path here  
239
// change active path here  
Línea 239... Línea 240...
239
const currentPath = paths. profileEdit;
240
const currentPath = paths. dashboard;
240
 
241
 
241
module.exports = {
242
module.exports = {
242
  entry: currentPath.entry,
243
  entry: currentPath.entry,
Línea 300... Línea 301...
300
  plugins: [
301
  plugins: [
301
    new MiniCssExtractPlugin({
302
    new MiniCssExtractPlugin({
302
      filename: "[name].css",
303
      filename: "[name].css",
303
      chunkFilename: "[id].css",
304
      chunkFilename: "[id].css",
304
    }),
305
    }),
-
 
306
    new BundleAnalyzerPlugin({analyzerMode: 'server'})
305
  ],
307
  ],
306
  optimization: {
308
  optimization: {
307
    minimizer: [
309
    minimizer: [
308
      new TerserPlugin({
310
      new TerserPlugin({
309
        extractComments: false,
311
        extractComments: false,