@videinfra/static-website-builder 1.9.0 → 1.9.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 +4 -0
- package/lib/get-path.js +13 -0
- package/package.json +1 -1
- package/tasks/javascripts/preprocess-config.js +2 -1
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.9.1] - 2023-11-01
|
|
8
|
+
### Fixed
|
|
9
|
+
- Fixed public path for dynamic imports
|
|
10
|
+
|
|
7
11
|
## [1.9.0] - 2023-08-16
|
|
8
12
|
### Updated
|
|
9
13
|
- Downgraded nano-memoize version
|
package/lib/get-path.js
CHANGED
|
@@ -87,6 +87,18 @@ function getDestPath (name, ...paths) {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Returns public path
|
|
92
|
+
*
|
|
93
|
+
* @param {string} [name] Task name
|
|
94
|
+
* @returns {string} Task public path
|
|
95
|
+
*/
|
|
96
|
+
function getPublicPath (name) {
|
|
97
|
+
const destFullPath = getDestPath(name);
|
|
98
|
+
const destPath = getDestPath();
|
|
99
|
+
return destFullPath.replace(destPath, '') + '/';
|
|
100
|
+
}
|
|
101
|
+
|
|
90
102
|
|
|
91
103
|
exports.getPathConfig = getPathConfig;
|
|
92
104
|
exports.getSourcePath = getSourcePath;
|
|
@@ -94,3 +106,4 @@ exports.getSourcePaths = getSourcePaths;
|
|
|
94
106
|
exports.getDestPath = getDestPath;
|
|
95
107
|
exports.getProjectPath = getProjectPath;
|
|
96
108
|
exports.getBuilderPath = getBuilderPath;
|
|
109
|
+
exports.getPublicPath = getPublicPath;
|
package/package.json
CHANGED
|
@@ -43,7 +43,8 @@ module.exports = function preprocessJavascriptsConfig (config, fullConfig) {
|
|
|
43
43
|
|
|
44
44
|
// Output folder
|
|
45
45
|
output: merge({
|
|
46
|
-
path: paths.getDestPath('javascripts')
|
|
46
|
+
path: paths.getDestPath('javascripts'),
|
|
47
|
+
publicPath: paths.getPublicPath('javascripts'),
|
|
47
48
|
}, get(config, ['webpack', 'output'], null)),
|
|
48
49
|
|
|
49
50
|
// Plugins, add ENV variables
|