@digest/webpack-express 3.5.1 → 4.0.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.
- package/dist/routers/dev.js +2 -2
- package/dist/routers/hot.js +2 -2
- package/dist/util/webpack.js +1 -1
- package/package.json +5 -6
package/dist/routers/dev.js
CHANGED
|
@@ -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
|
|
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:
|
|
15
|
+
publicPath: node_path_1.default.join(baseHref, publicPath),
|
|
16
16
|
stats: {
|
|
17
17
|
colors: true
|
|
18
18
|
}
|
package/dist/routers/hot.js
CHANGED
|
@@ -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
|
|
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: `${
|
|
15
|
+
path: `${node_path_1.default.join(baseHref)}${hotPath}`
|
|
16
16
|
});
|
|
17
17
|
const hotBase = '/*';
|
|
18
18
|
router.get(hotBase, hotMiddleware);
|
package/dist/util/webpack.js
CHANGED
|
@@ -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/
|
|
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": "
|
|
5
|
+
"version": "4.0.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.
|
|
49
|
-
"@digest/scripts": "^3.
|
|
50
|
-
"@digest/webpack": "^3.
|
|
48
|
+
"@digest/express": "^3.0.0",
|
|
49
|
+
"@digest/scripts": "^3.0.0",
|
|
50
|
+
"@digest/webpack": "^3.0.0",
|
|
51
51
|
"webpack-dev-middleware": "^5.3.3",
|
|
52
52
|
"webpack-hot-middleware": "^2.25.2"
|
|
53
53
|
},
|
|
@@ -59,6 +59,5 @@
|
|
|
59
59
|
"digest",
|
|
60
60
|
"express",
|
|
61
61
|
"webpack"
|
|
62
|
-
]
|
|
63
|
-
"gitHead": "ffae282c11332597e89a81ac88daa6af57508df2"
|
|
62
|
+
]
|
|
64
63
|
}
|