Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 197 Rev 200
Línea 1... Línea 1...
1
const path = require("path");
1
const path = require("path");
2
const isDevelopment = true || 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");
Línea 5... Línea 5...
5
 
5
 
6
// Add paths while bundling
6
// Add paths while bundling
Línea 219... Línea 219...
219
    filename: "postViewBundle.js",
219
    filename: "postViewBundle.js",
220
  },
220
  },
221
};
221
};
Línea 222... Línea 222...
222
 
222
 
223
// change active path here  
223
// change active path here  
Línea 224... Línea 224...
224
const currentPath = paths.dashboard;
224
const currentPath = paths.profileEdit;
225
 
225
 
226
module.exports = {
226
module.exports = {
227
  entry: currentPath.entry,
227
  entry: currentPath.entry,
228
  output: {
228
  output: {
229
    path: currentPath.output,
229
    path: currentPath.output,
230
    filename: currentPath.filename,
230
    filename: currentPath.filename,
231
  },
231
  },
232
  watch: false,
232
  watch: isDevelopment ? true : false,
233
  mode: isDevelopment ? "development" : "production",
233
  mode: isDevelopment ? "development" : "production",
234
  resolve: {
234
  resolve: {
235
    extensions: [".js", ".jsx", ".scss"],
235
    extensions: [".js", ".jsx", ".scss"],