@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 CHANGED
@@ -43,6 +43,7 @@ const partialResolver = ( partial, callback ) => {
43
43
  case 'navFooter':
44
44
  case 'navHeader':
45
45
  case 'utilityHeader':
46
+ case 'head':
46
47
  partialDir = 'semantics';
47
48
  break;
48
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/webpack",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "description": "CAWebPublishing Webpack Configuration",
5
5
  "main": "webpack.config.js",
6
6
  "files": [
@@ -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( '--template', path.join(templatePath, 'patterns', 'default.html') );
39
- let searchTemplate = getArgVal( '--search-template', path.join(templatePath, 'patterns', 'search.html') );
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( '--scheme', 'oceanside' );
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: dirent.name,
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
package/webpack.config.js CHANGED
@@ -103,6 +103,7 @@ let webpackConfig = {
103
103
  chunkFilename: isProduction ? '[name].min.js?v=[chunkhash]' : '[name].js?v=[chunkhash]',
104
104
  pathinfo: false,
105
105
  clean: isProduction,
106
+ publicPath: '/',
106
107
  },
107
108
 
108
109
  /**