@sumotto/configs 0.0.36 → 0.0.37
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/helpers/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -5,15 +5,16 @@ const ImageMinimizerPlugin = require( 'image-minimizer-webpack-plugin' );
|
|
|
5
5
|
const SyncWebpackPlugin = require( '../helpers/sync-webpack-plugin' );
|
|
6
6
|
const CleanWebpackPlugin = require( '../helpers/clean-webpack-plugin' );
|
|
7
7
|
const findFreePort = require( 'find-free-port-sync' );
|
|
8
|
-
const { resolve } = require( 'node:path' );
|
|
8
|
+
const { resolve, basename } = require( 'node:path' );
|
|
9
9
|
const {
|
|
10
10
|
Config,
|
|
11
11
|
defaultConfigWP,
|
|
12
12
|
modulesConfigWP,
|
|
13
13
|
} = require( '../helpers/webpack' );
|
|
14
14
|
const rootPath = process.cwd().replace( /\\/g, '/' );
|
|
15
|
+
const themeName = basename( rootPath );
|
|
15
16
|
const outputPath = process.env.WP_CONTENT_DIR
|
|
16
|
-
? resolve( process.env.WP_CONTENT_DIR, 'themes
|
|
17
|
+
? resolve( process.env.WP_CONTENT_DIR, 'themes', themeName )
|
|
17
18
|
: rootPath;
|
|
18
19
|
|
|
19
20
|
const port =
|