@caweb/webpack 1.5.3 → 1.5.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/package.json +4 -4
- package/webpack.config.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caweb/webpack",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
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
|
-
"@wordpress/scripts": "^30.
|
|
40
|
+
"@wordpress/scripts": "^30.20.0",
|
|
41
41
|
"css-minimizer-webpack-plugin": "^7.0.2",
|
|
42
42
|
"handlebars-loader": "^1.7.3",
|
|
43
43
|
"html-format": "^1.1.7",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"webpack-remove-empty-scripts": "^1.1.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@caweb/a11y-webpack-plugin": ">=
|
|
53
|
-
"@caweb/css-audit-webpack-plugin": ">=
|
|
52
|
+
"@caweb/a11y-webpack-plugin": ">= 2.0.0",
|
|
53
|
+
"@caweb/css-audit-webpack-plugin": ">= 2.0.0",
|
|
54
54
|
"@caweb/html-webpack-plugin": ">= 1.8.5",
|
|
55
55
|
"@caweb/jshint-webpack-plugin": ">= 2.0.0"
|
|
56
56
|
}
|
package/webpack.config.js
CHANGED
|
@@ -22,7 +22,7 @@ import {HtmlWebpackSkipAssetsPlugin} from 'html-webpack-skip-assets-plugin';
|
|
|
22
22
|
import {HtmlWebpackLinkTypePlugin} from 'html-webpack-link-type-plugin';
|
|
23
23
|
import RemoveEmptyScriptsPlugin from 'webpack-remove-empty-scripts';
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
import JSHintPlugin from '@caweb/jshint-webpack-plugin';
|
|
26
26
|
import CSSAuditPlugin from '@caweb/css-audit-webpack-plugin';
|
|
27
27
|
import A11yPlugin from '@caweb/a11y-webpack-plugin';
|
|
28
28
|
|
|
@@ -380,7 +380,7 @@ if( 'serve' === webpackCommand ){
|
|
|
380
380
|
}),
|
|
381
381
|
new HtmlWebpackSkipAssetsPlugin(),
|
|
382
382
|
new HtmlWebpackLinkTypePlugin(),
|
|
383
|
-
|
|
383
|
+
! flagExists('--no-jshint') ? new JSHintPlugin() : false,
|
|
384
384
|
! flagExists('--no-audit') ? new CSSAuditPlugin() : false,
|
|
385
385
|
! flagExists('--no-a11y') ? new A11yPlugin() : false
|
|
386
386
|
)
|