1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- "use strict";
- const path = require("path");
- const devConfig = require("./dev.env");
- const prodConfig = require("./prod.env");
- const buildPath = prodConfig.BUILD_PATH.replace(/'/g, "").replace(/"/g, "");
- module.exports = {
- dev: {
-
- assetsSubDirectory: "static",
- assetsPublicPath: "/",
-
- host: "0.0.0.0",
- port: 8871,
- autoOpenBrowser: false,
- errorOverlay: true,
- notifyOnErrors: true,
- poll: false,
-
-
- devtool: "eval-source-map",
-
-
-
-
-
- cacheBusting: true,
- cssSourceMap: false,
- proxyTable: JSON.parse(devConfig.PROXY_TABLE)
- },
- build: {
-
- index: path.resolve(__dirname, `${buildPath}/index.html`),
-
- assetsRoot: path.resolve(__dirname, `${buildPath}`),
- assetsSubDirectory: "static",
- assetsPublicPath: "./",
-
- productionSourceMap: true,
-
- devtool: "#source-map",
-
-
-
-
- productionGzip: false,
- productionGzipExtensions: ["js", "css"],
-
-
-
-
- bundleAnalyzerReport: process.env.npm_config_report
- },
- theme: {
-
- assetsRoot: path.resolve(__dirname, "../themes"),
- assetsSubDirectory: "static",
- assetsPublicPath: "./",
-
- productionSourceMap: false,
-
- devtool: "#source-map",
-
-
-
-
- productionGzip: true,
- productionGzipExtensions: ["js", "css"],
-
-
-
-
- bundleAnalyzerReport: process.env.npm_config_report
- }
- };
|