@caweb/webpack 1.5.11 → 1.5.12
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 +5 -1
- package/webpack.config.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caweb/webpack",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.12",
|
|
4
4
|
"description": "CAWebPublishing Webpack Configuration",
|
|
5
5
|
"main": "webpack.config.js",
|
|
6
6
|
"files": [
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"webpack": "webpack",
|
|
14
14
|
"serve": "webpack serve --config ./plugins/html/webpack.config.js",
|
|
15
|
+
"config:test": "webpack configtest",
|
|
15
16
|
"test": "echo \\\"Error: run tests from root\\\" && exit 0"
|
|
16
17
|
},
|
|
17
18
|
"repository": {
|
|
@@ -53,5 +54,8 @@
|
|
|
53
54
|
"@caweb/css-audit-webpack-plugin": ">= 2.0.0",
|
|
54
55
|
"@caweb/html-webpack-plugin": ">= 1.8.5",
|
|
55
56
|
"@caweb/jshint-webpack-plugin": ">= 2.0.0"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"webpack-cli": "^6.0.1"
|
|
56
60
|
}
|
|
57
61
|
}
|
package/webpack.config.js
CHANGED
|
@@ -30,6 +30,7 @@ import A11yPlugin from '@caweb/a11y-webpack-plugin';
|
|
|
30
30
|
* Internal dependencies
|
|
31
31
|
*/
|
|
32
32
|
import CAWebHTMLPlugin from '@caweb/html-webpack-plugin';
|
|
33
|
+
import { error } from 'console';
|
|
33
34
|
|
|
34
35
|
const webpackCommand = 'build' === process.argv[2] ? 'build' : 'serve' ;
|
|
35
36
|
|
|
@@ -110,7 +111,7 @@ baseConfig.module.rules.forEach((rule, i) => {
|
|
|
110
111
|
// silence deprecation warnings from sass
|
|
111
112
|
case new RegExp(/\.(sc|sa)ss$/).toString():
|
|
112
113
|
rule.use[rule.use.length-1].options.sassOptions = {
|
|
113
|
-
silenceDeprecations: ['global-builtin', 'import', 'color-functions']
|
|
114
|
+
silenceDeprecations: ['global-builtin', 'import', 'color-functions', 'if-function']
|
|
114
115
|
};
|
|
115
116
|
break;
|
|
116
117
|
case new RegExp(/\.m?(j|t)sx?$/).toString():
|
|
@@ -178,7 +179,9 @@ let webpackConfig = {
|
|
|
178
179
|
// @see https://webpack.js.org/configuration/cache/
|
|
179
180
|
cache: false,
|
|
180
181
|
|
|
181
|
-
stats:
|
|
182
|
+
stats: {
|
|
183
|
+
errors: true,
|
|
184
|
+
},
|
|
182
185
|
|
|
183
186
|
// Determine where the created bundles will be outputted.
|
|
184
187
|
// @see https://webpack.js.org/concepts/#output
|