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