@machtwatch/react-script 1.2.11-alpha.8 → 1.2.11-alpha.9
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": "@machtwatch/react-script",
|
|
3
|
-
"version": "1.2.11-alpha.
|
|
3
|
+
"version": "1.2.11-alpha.9",
|
|
4
4
|
"description": "Machtwatch React script",
|
|
5
5
|
"author": "Danny Reza Miloen <danny@machtwatch.co.id>",
|
|
6
6
|
"contributors": [],
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
"simple-progress-webpack-plugin": "^2.0.0",
|
|
103
103
|
"speed-measure-webpack-plugin": "^1.5.0",
|
|
104
104
|
"style-loader": "^3.3.1",
|
|
105
|
+
"stylelint": "^16.10.0",
|
|
105
106
|
"terser": "^5.14.1",
|
|
106
107
|
"terser-webpack-plugin": "^5.3.3",
|
|
107
108
|
"url-loader": "^4.1.1",
|
|
@@ -120,7 +121,8 @@
|
|
|
120
121
|
"@machtwatch/eslint-config": "^1.1.1",
|
|
121
122
|
"eslint": "^8.18.0",
|
|
122
123
|
"eslint-import-resolver-webpack": "^0.13.2",
|
|
123
|
-
"eslint-plugin-import": "^2.26.0"
|
|
124
|
+
"eslint-plugin-import": "^2.26.0",
|
|
125
|
+
"stylelint-webpack-plugin": "^5.0.1"
|
|
124
126
|
},
|
|
125
127
|
"peerDependencies": {
|
|
126
128
|
"@babel/runtime": "^7.18.3"
|
|
@@ -11,6 +11,7 @@ const PurgecssPlugin = require('purgecss-webpack-plugin');
|
|
|
11
11
|
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
|
12
12
|
const LoadablePlugin = require('@loadable/webpack-plugin');
|
|
13
13
|
const WorkboxPlugin = require('workbox-webpack-plugin');
|
|
14
|
+
const StyleLintPlugin = require('stylelint-webpack-plugin');
|
|
14
15
|
const ImageminWebpWebpackPlugin = require('imagemin-webp-webpack-plugin');
|
|
15
16
|
const SimpleProgressWebpackPlugin = require('simple-progress-webpack-plugin');
|
|
16
17
|
const { SubresourceIntegrityPlugin } = require('webpack-subresource-integrity');
|
|
@@ -483,6 +484,11 @@ const clientConfig = {
|
|
|
483
484
|
},
|
|
484
485
|
plugins: [
|
|
485
486
|
...baseClientConfig.plugins,
|
|
487
|
+
new StyleLintPlugin({
|
|
488
|
+
configFile: `${paths.appPath}/.stylelintrc`,
|
|
489
|
+
extensions: ['less'],
|
|
490
|
+
exclude: ['node_modules', 'coverage'],
|
|
491
|
+
}),
|
|
486
492
|
new webpack.HotModuleReplacementPlugin(),
|
|
487
493
|
new SubresourceIntegrityPlugin(),
|
|
488
494
|
new LoadablePlugin({
|