@caweb/webpack 1.6.4 → 1.6.5
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/lib/loader.js +1 -0
- package/package.json +1 -1
- package/tests/webpack.tests.js +4 -4
- package/webpack.config.js +1 -0
package/lib/loader.js
CHANGED
package/package.json
CHANGED
package/tests/webpack.tests.js
CHANGED
|
@@ -35,10 +35,10 @@ JSON.parse(fs.readFileSync(path.join(appPath, 'caweb.json')))
|
|
|
35
35
|
let caweb = deepmerge( testCaweb, defaultCaweb );
|
|
36
36
|
|
|
37
37
|
let templatePath = path.join(appPath, 'node_modules', '@caweb', 'template');
|
|
38
|
-
let template = getArgVal( '
|
|
39
|
-
let searchTemplate = getArgVal( '
|
|
38
|
+
let template = getArgVal( 'template', path.join(templatePath, 'patterns', 'default.html') );
|
|
39
|
+
let searchTemplate = getArgVal( 'search-template', path.join(templatePath, 'patterns', 'search.html') );
|
|
40
40
|
|
|
41
|
-
let scheme = getArgVal( '
|
|
41
|
+
let scheme = getArgVal( 'scheme', 'oceanside' );
|
|
42
42
|
let favicon = caweb?.site?.favicon ?? null;
|
|
43
43
|
|
|
44
44
|
// // Additional pages directory
|
|
@@ -65,7 +65,7 @@ let additionalPages = ! fs.existsSync( basePageDir ) ? [] :
|
|
|
65
65
|
|
|
66
66
|
return new HtmlWebpackPlugin({
|
|
67
67
|
template,
|
|
68
|
-
filename:
|
|
68
|
+
filename: fileTemplate.replace(basePageDir, ''),
|
|
69
69
|
title,
|
|
70
70
|
templateParameters: {
|
|
71
71
|
...caweb.site, // we spread the site data found in the caweb.json file
|