Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/node_modules/laravel-mix/src/components/ drwxr-xr-x | |
| Viewing file: Select action/file-type: const { Component } = require('./Component');
module.exports = class DumpWebpackConfig extends Component {
/**
* The optional name to be used when called by Mix.
*/
name() {
return ['dumpWebpackConfig', 'dump'];
}
/**
* Register the component.
*/
register() {
this.context.listen('configReadyForUser', config => {
this.context.logger.info(this.circularStringify(config));
});
}
/**
*
* @param {any} item
*/
circularStringify(item) {
const cache = new Set();
return JSON.stringify(
item,
(_, value) => {
if (value instanceof RegExp) {
return value.toString();
}
if (typeof value === 'object' && value !== null) {
if (cache.has(value)) {
return undefined;
}
cache.add(value);
}
return value;
},
2
);
}
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0035 ]-- |