@genesislcap/webpack-builder 14.192.3-alpha-1303ae2.0 → 14.193.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"devServer.d.ts","sourceRoot":"","sources":["../../src/config/devServer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAqB7C,eAAO,MAAM,SAAS,QAAS,YAAY,KAAG,aAAa,CAAC,WAAW,CA0CtE,CAAC"}
1
+ {"version":3,"file":"devServer.d.ts","sourceRoot":"","sources":["../../src/config/devServer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAqB7C,eAAO,MAAM,SAAS,QAAS,YAAY,KAAG,aAAa,CAAC,WAAW,CA6CtE,CAAC"}
@@ -22,10 +22,12 @@ const getServer = (isHTTPS = false) => {
22
22
  };
23
23
  };
24
24
  const devServer = (ctx) => {
25
+ var _a;
25
26
  const { cli: { isDev, options: { open, https }, }, dirs: { cwd }, env: { isCI }, pkg, config: { webpack }, } = ctx;
26
27
  if (!isDev) {
27
28
  return;
28
29
  }
30
+ const publicPath = (_a = process.env.PUBLIC_PATH) !== null && _a !== void 0 ? _a : '/';
29
31
  return {
30
32
  open: open && !isCI,
31
33
  historyApiFallback: true,
@@ -47,7 +49,7 @@ const devServer = (ctx) => {
47
49
  static: [
48
50
  {
49
51
  directory: (0, node_path_1.resolve)(cwd, './public'),
50
- publicPath: '/',
52
+ publicPath,
51
53
  watch: true,
52
54
  },
53
55
  ],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/webpack-builder",
3
3
  "description": "Webpack builder",
4
- "version": "14.192.3-alpha-1303ae2.0",
4
+ "version": "14.193.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "dev": "tsc -b ./tsconfig.json -w"
16
16
  },
17
17
  "dependencies": {
18
- "@genesislcap/build-kit": "14.192.3-alpha-1303ae2.0",
18
+ "@genesislcap/build-kit": "14.193.1",
19
19
  "@pixability-ui/federated-types": "^0.2.0",
20
20
  "@types/webpack-env": "^1.18.4",
21
21
  "camel-case": "^4.1.2",
@@ -57,5 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "a3a2aa25079aae6722a6f7039dcc3abc862b90dc"
60
+ "gitHead": "83048f45bf5634a5c7e93d461eceb393610aee37"
61
61
  }
@@ -37,6 +37,9 @@ export const devServer = (ctx: BuildContext): Configuration['devServer'] => {
37
37
  if (!isDev) {
38
38
  return;
39
39
  }
40
+
41
+ const publicPath = process.env.PUBLIC_PATH ?? '/';
42
+
40
43
  return {
41
44
  open: open && !isCI,
42
45
  historyApiFallback: true,
@@ -58,7 +61,7 @@ export const devServer = (ctx: BuildContext): Configuration['devServer'] => {
58
61
  static: [
59
62
  {
60
63
  directory: resolve(cwd, './public'),
61
- publicPath: '/',
64
+ publicPath,
62
65
  watch: true,
63
66
  },
64
67
  ],