@caweb/webpack 1.4.0-beta.0 → 1.4.0-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/webpack",
3
- "version": "1.4.0-beta.0",
3
+ "version": "1.4.0-beta.2",
4
4
  "description": "CAWebPublishing Webpack Configuration",
5
5
  "main": "webpack.config.js",
6
6
  "files": [
@@ -37,6 +37,7 @@
37
37
  },
38
38
  "homepage": "https://github.com/CAWebPublishing/webpack#readme",
39
39
  "dependencies": {
40
+ "@caweb/html-webpack-plugin": "^1.8.2",
40
41
  "@wordpress/scripts": "^30.16.0",
41
42
  "css-minimizer-webpack-plugin": "^7.0.2",
42
43
  "handlebars-loader": "^1.7.3",
package/webpack.config.js CHANGED
@@ -335,7 +335,6 @@ if( 'serve' === webpackCommand ){
335
335
  /css-audit.*/, // we skip the CSSAudit Files
336
336
  /a11y.*/, // we skip the A11y Files
337
337
  /jshint.*/, // we skip the JSHint Files
338
- /font-only.js/, // we skip the font-only Files
339
338
  ]
340
339
  }),
341
340
  new HtmlWebpackSkipAssetsPlugin(),
@@ -350,7 +349,7 @@ if( 'serve' === webpackCommand ){
350
349
  if( fs.existsSync( path.join(appPath, 'caweb.json') ) ){
351
350
  let dataFile = JSON.parse( fs.readFileSync( path.join(appPath, 'caweb.json') ) );
352
351
 
353
- if( dataFile.site.google.search ){
352
+ if( dataFile.site?.google?.search ){
354
353
  webpackConfig.plugins.push(
355
354
  new CAWebHTMLPlugin({
356
355
  template: 'search',
@@ -364,7 +363,6 @@ if( 'serve' === webpackCommand ){
364
363
  /css-audit.*/, // we skip the CSSAudit Files
365
364
  /a11y.*/, // we skip the A11y Files
366
365
  /jshint.*/, // we skip the JSHint Files
367
- /font-only.*/, // we skip the font-only Files
368
366
  ]
369
367
  })
370
368
  )