@digest/webpack-express 3.5.0 → 3.6.0

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.
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const path_1 = __importDefault(require("path"));
6
+ const node_path_1 = __importDefault(require("node:path"));
7
7
  const express_1 = require("express");
8
8
  const webpack_dev_middleware_1 = __importDefault(require("webpack-dev-middleware"));
9
9
  const dev = (compiler, baseHref, publicPath = 'bundle') => {
@@ -12,7 +12,7 @@ const dev = (compiler, baseHref, publicPath = 'bundle') => {
12
12
  strict: true
13
13
  });
14
14
  const devMiddleware = (0, webpack_dev_middleware_1.default)(compiler, {
15
- publicPath: path_1.default.join(baseHref, publicPath),
15
+ publicPath: node_path_1.default.join(baseHref, publicPath),
16
16
  stats: {
17
17
  colors: true
18
18
  }
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const path_1 = __importDefault(require("path"));
6
+ const node_path_1 = __importDefault(require("node:path"));
7
7
  const express_1 = require("express");
8
8
  const webpack_hot_middleware_1 = __importDefault(require("webpack-hot-middleware"));
9
9
  const hot = (compiler, baseHref, hotPath = 'hot') => {
@@ -12,7 +12,7 @@ const hot = (compiler, baseHref, hotPath = 'hot') => {
12
12
  strict: true
13
13
  });
14
14
  const hotMiddleware = (0, webpack_hot_middleware_1.default)(compiler, {
15
- path: `${path_1.default.join(baseHref)}${hotPath}`
15
+ path: `${node_path_1.default.join(baseHref)}${hotPath}`
16
16
  });
17
17
  const hotBase = '/*';
18
18
  router.get(hotBase, hotMiddleware);
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const webpack_1 = __importDefault(require("webpack"));
7
7
  const webpack = (dashboard = false) => {
8
8
  var _a;
9
- const config = require('@digest/scripts');
9
+ const config = require('@digest/webpack');
10
10
  if (dashboard) {
11
11
  const DashboardPlugin = require('webpack-dashboard/plugin');
12
12
  (_a = config.plugins) === null || _a === void 0 ? void 0 : _a.concat(new DashboardPlugin());
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digest/webpack-express",
3
3
  "title": "Express Webpack Middleware Digest",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "3.5.0",
5
+ "version": "3.6.0",
6
6
  "description": "Digested Express Webpack middleware configurations",
7
7
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
8
8
  "contributors": [
@@ -45,9 +45,9 @@
45
45
  "clean": "rimraf node_modules dist package-lock.json npm-debug.log"
46
46
  },
47
47
  "dependencies": {
48
- "@digest/express": "^3.5.0",
49
- "@digest/scripts": "^3.5.0",
50
- "@digest/webpack": "^3.5.0",
48
+ "@digest/express": "^3.6.0",
49
+ "@digest/scripts": "^3.6.0",
50
+ "@digest/webpack": "^3.6.0",
51
51
  "webpack-dev-middleware": "^5.3.3",
52
52
  "webpack-hot-middleware": "^2.25.2"
53
53
  },
@@ -60,5 +60,5 @@
60
60
  "express",
61
61
  "webpack"
62
62
  ],
63
- "gitHead": "578118d8dbf2ac96e0ad93dda474934679e6563e"
63
+ "gitHead": "6dbabfc3844f33f4b2864fd4273a2b630504830f"
64
64
  }