@sumotto/configs 0.0.17 → 0.0.19
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const globby = require( 'globby' );
|
|
2
2
|
const rimraf = require( 'rimraf' );
|
|
3
3
|
|
|
4
4
|
let isRunning = false;
|
|
@@ -12,11 +12,11 @@ class CleanWebpackPlugin {
|
|
|
12
12
|
|
|
13
13
|
// noinspection JSUnusedGlobalSymbols
|
|
14
14
|
apply( compiler ) {
|
|
15
|
-
compiler.hooks.beforeRun.tap( 'SumoTToCleanWebpackPlugin',
|
|
15
|
+
compiler.hooks.beforeRun.tap( 'SumoTToCleanWebpackPlugin', () => {
|
|
16
16
|
this.del();
|
|
17
17
|
} );
|
|
18
18
|
|
|
19
|
-
compiler.hooks.watchRun.tap( 'SumoTToCleanWebpackPlugin',
|
|
19
|
+
compiler.hooks.watchRun.tap( 'SumoTToCleanWebpackPlugin', () => {
|
|
20
20
|
if ( isRunning ) {
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
@@ -28,7 +28,7 @@ class CleanWebpackPlugin {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
del() {
|
|
31
|
-
|
|
31
|
+
globby.sync( this.patterns ).forEach( ( file ) => {
|
|
32
32
|
rimraf.sync( file, { glob: false } );
|
|
33
33
|
} );
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sumotto/configs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Configs for my work",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"release": "np --yolo"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dotenv": "^16.4.5",
|
|
32
32
|
"find-free-port-sync": "^1.0.0",
|
|
33
33
|
"glob": "^10.4.2",
|
|
34
|
-
"globby": "^
|
|
34
|
+
"globby": "^11.0.4",
|
|
35
35
|
"image-minimizer-webpack-plugin": "^4.0.2",
|
|
36
36
|
"mini-css-extract-plugin": "^2.9.0",
|
|
37
37
|
"postcss-increase-specificity": "^0.6.0",
|
|
@@ -2,6 +2,7 @@ const MiniCSSExtractPlugin = require( 'mini-css-extract-plugin' );
|
|
|
2
2
|
const RtlCssPlugin = require( 'rtlcss-webpack-plugin' );
|
|
3
3
|
const RemoveEmptyScriptsPlugin = require( 'webpack-remove-empty-scripts' );
|
|
4
4
|
const SyncDirectoryWebpackPlugin = require( '../helpers/sync-directory-webpack-plugin' );
|
|
5
|
+
const CleanWebpackPlugin = require( '../helpers/clean-webpack-plugin' );
|
|
5
6
|
const findFreePort = require( 'find-free-port-sync' );
|
|
6
7
|
const { resolve } = require( 'node:path' );
|
|
7
8
|
const {
|
|
@@ -9,7 +10,6 @@ const {
|
|
|
9
10
|
defaultConfigWP,
|
|
10
11
|
modulesConfigWP,
|
|
11
12
|
} = require( '../helpers/webpack' );
|
|
12
|
-
const { CleanWebpackPlugin } = require( '../helpers/clean-webpack-plugin' );
|
|
13
13
|
const root = process.cwd().replace( /\\/g, '/' );
|
|
14
14
|
|
|
15
15
|
const port =
|
|
@@ -3,7 +3,7 @@ const RemoveEmptyScriptsPlugin = require( 'webpack-remove-empty-scripts' );
|
|
|
3
3
|
const RtlCssPlugin = require( 'rtlcss-webpack-plugin' );
|
|
4
4
|
const ImageMinimizerPlugin = require( 'image-minimizer-webpack-plugin' );
|
|
5
5
|
const SyncDirectoryWebpackPlugin = require( '../helpers/sync-directory-webpack-plugin' );
|
|
6
|
-
const
|
|
6
|
+
const CleanWebpackPlugin = require( '../helpers/clean-webpack-plugin' );
|
|
7
7
|
const findFreePort = require( 'find-free-port-sync' );
|
|
8
8
|
const { resolve } = require( 'node:path' );
|
|
9
9
|
const {
|