@videinfra/static-website-builder 1.11.0 → 1.11.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.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [1.11.1] - 2024-02-24
|
|
8
|
+
### Fixed
|
|
9
|
+
- Fixed dependencies
|
|
10
|
+
|
|
7
11
|
## [1.11.0] - 2024-02-24
|
|
8
12
|
### Updated
|
|
9
13
|
- Added dynamic entries, webpack will rebuild when entries change
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@videinfra/static-website-builder",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "Customizable static site project builder",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -50,11 +50,14 @@
|
|
|
50
50
|
"gulp-sourcemaps": "^3.0.0",
|
|
51
51
|
"gulp-svgmin": "^4.1.0",
|
|
52
52
|
"gulp-svgstore": "^9.0.0",
|
|
53
|
+
"lodash.clone": "^4.3.2",
|
|
54
|
+
"lodash.some": "^4.2.2",
|
|
53
55
|
"map-stream": "^0.1.0",
|
|
54
56
|
"minimist": "^1.2.8",
|
|
55
57
|
"nano-memoize": "1.3.0",
|
|
56
58
|
"node-sass": "^7.0.3",
|
|
57
59
|
"sass": "^1.65.1",
|
|
60
|
+
"through": "^2.3.8",
|
|
58
61
|
"twig": "^1.10.5",
|
|
59
62
|
"webpack": "^4.46.0",
|
|
60
63
|
"webpack-watch-files-plugin": "^1.2.1"
|
|
@@ -24,30 +24,8 @@ function requireUncached(module) {
|
|
|
24
24
|
function getEntry (config) {
|
|
25
25
|
const entryFile = paths.getSourcePath('javascripts', config.entryList);
|
|
26
26
|
|
|
27
|
-
// console.log(require(entryFile));
|
|
28
|
-
// return () => {
|
|
29
|
-
// return new Promise((resolve) => {
|
|
30
|
-
// resolve(require(entryFile));
|
|
31
|
-
// });
|
|
32
|
-
// };
|
|
33
|
-
|
|
34
|
-
// return () => new Promise((resolve) => {
|
|
35
|
-
// resolve(['./demo', './demo2'])
|
|
36
|
-
// });
|
|
37
|
-
|
|
38
27
|
return function getEntries () {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// console.log(require.cache.);
|
|
42
|
-
// console.log('loading entries:', entryURL);
|
|
43
|
-
// return import(entryURL).then((entries) => {
|
|
44
|
-
// console.log('loaded entries:', entries.default);
|
|
45
|
-
// return entries.default;
|
|
46
|
-
// });
|
|
47
|
-
|
|
48
|
-
const entries = requireUncached(entryFile);
|
|
49
|
-
console.log('entries:', entries);
|
|
50
|
-
return entries;
|
|
28
|
+
return requireUncached(entryFile);
|
|
51
29
|
}
|
|
52
30
|
}
|
|
53
31
|
|