@promoboxx/react-scripts-vite 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/viteConfig.js +13 -5
- package/dist/esm/viteConfig.mjs +10 -2
- package/package.json +1 -1
package/dist/cjs/viteConfig.js
CHANGED
|
@@ -11,9 +11,9 @@ var __export = (target, all) => {
|
|
|
11
11
|
};
|
|
12
12
|
var __copyProps = (to, from, except, desc) => {
|
|
13
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let
|
|
15
|
-
if (!__hasOwnProp.call(to,
|
|
16
|
-
__defProp(to,
|
|
14
|
+
for (let key2 of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key2) && key2 !== except)
|
|
16
|
+
__defProp(to, key2, { get: () => from[key2], enumerable: !(desc = __getOwnPropDesc(from, key2)) || desc.enumerable });
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
@@ -43,6 +43,8 @@ var import_vite_plugin_pwa = require("vite-plugin-pwa");
|
|
|
43
43
|
var import_vite_plugin_svgr = __toESM(require("vite-plugin-svgr"));
|
|
44
44
|
var import_replaceEnvInHtml = __toESM(require("./replaceEnvInHtml"));
|
|
45
45
|
var import_splitVendorManualChunks = __toESM(require("./splitVendorManualChunks"));
|
|
46
|
+
var cert = process.env.SSL_CRT_FILE ? import_fs.default.readFileSync(process.env.SSL_CRT_FILE) : void 0;
|
|
47
|
+
var key = process.env.SSL_KEY_FILE ? import_fs.default.readFileSync(process.env.SSL_KEY_FILE) : void 0;
|
|
46
48
|
var pluginOptions = {
|
|
47
49
|
checker: {
|
|
48
50
|
eslint: process.env.DISABLE_ESLINT_PLUGIN === "true" ? void 0 : {
|
|
@@ -134,8 +136,14 @@ var viteConfig = () => {
|
|
|
134
136
|
host: process.env.HOST || "0.0.0.0",
|
|
135
137
|
port: process.env.PORT ? Number(process.env.PORT) : 3e3,
|
|
136
138
|
https: process.env.HTTPS === "true" ? {
|
|
137
|
-
cert
|
|
138
|
-
key
|
|
139
|
+
cert,
|
|
140
|
+
key
|
|
141
|
+
} : void 0
|
|
142
|
+
},
|
|
143
|
+
preview: {
|
|
144
|
+
https: process.env.HTTPS === "true" ? {
|
|
145
|
+
cert,
|
|
146
|
+
key
|
|
139
147
|
} : void 0
|
|
140
148
|
},
|
|
141
149
|
test: {
|
package/dist/esm/viteConfig.mjs
CHANGED
|
@@ -8,6 +8,8 @@ import { VitePWA } from "vite-plugin-pwa";
|
|
|
8
8
|
import svgr from "vite-plugin-svgr";
|
|
9
9
|
import replaceEnvInHtml from "./replaceEnvInHtml.mjs";
|
|
10
10
|
import splitVendorManualChunks from "./splitVendorManualChunks.mjs";
|
|
11
|
+
var cert = process.env.SSL_CRT_FILE ? fs.readFileSync(process.env.SSL_CRT_FILE) : void 0;
|
|
12
|
+
var key = process.env.SSL_KEY_FILE ? fs.readFileSync(process.env.SSL_KEY_FILE) : void 0;
|
|
11
13
|
var pluginOptions = {
|
|
12
14
|
checker: {
|
|
13
15
|
eslint: process.env.DISABLE_ESLINT_PLUGIN === "true" ? void 0 : {
|
|
@@ -99,8 +101,14 @@ var viteConfig = () => {
|
|
|
99
101
|
host: process.env.HOST || "0.0.0.0",
|
|
100
102
|
port: process.env.PORT ? Number(process.env.PORT) : 3e3,
|
|
101
103
|
https: process.env.HTTPS === "true" ? {
|
|
102
|
-
cert
|
|
103
|
-
key
|
|
104
|
+
cert,
|
|
105
|
+
key
|
|
106
|
+
} : void 0
|
|
107
|
+
},
|
|
108
|
+
preview: {
|
|
109
|
+
https: process.env.HTTPS === "true" ? {
|
|
110
|
+
cert,
|
|
111
|
+
key
|
|
104
112
|
} : void 0
|
|
105
113
|
},
|
|
106
114
|
test: {
|