@machtwatch/react-script 1.2.11-alpha.4 → 1.2.11-alpha.6

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.4",
3
+ "version": "1.2.11-alpha.6",
4
4
  "description": "Machtwatch React script",
5
5
  "author": "Danny Reza Miloen <danny@machtwatch.co.id>",
6
6
  "contributors": [],
@@ -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');
@@ -161,7 +162,9 @@ const webpackConfig = ({ isClient }) => ({
161
162
  extensions: ['.js', '.jsx', '.mjs'],
162
163
  modules: [paths.appSrc, path.resolve(paths.appSrc, 'node_modules'), 'node_modules', './node_modules'],
163
164
  alias: {
164
- build: paths.appBuild
165
+ build: paths.appBuild,
166
+ '@helpers': path.resolve(paths.appSrc, 'helpers'),
167
+ '@components': path.resolve(paths.appSrc, 'components'),
165
168
  },
166
169
  },
167
170
 
@@ -481,6 +484,11 @@ const clientConfig = {
481
484
  },
482
485
  plugins: [
483
486
  ...baseClientConfig.plugins,
487
+ new StyleLintPlugin({
488
+ configFile: `${paths.appPath}/.stylelintrc`,
489
+ extensions: ['less'],
490
+ exclude: ['node_modules', 'coverage'],
491
+ }),
484
492
  new webpack.HotModuleReplacementPlugin(),
485
493
  new SubresourceIntegrityPlugin(),
486
494
  new LoadablePlugin({