function emit(compilation, callback) {
		this.log(
			'emit',
			JSON.stringify({ canRun: this.canRun, lastRun: this.lastRun, lastWatch: this.lastWatch }),
		);
		if (!this.canRun || (this.lastRun && this.lastWatch && this.lastRun > this.lastWatch)) return;

		const startTime = Date.now();
		this.lastRun = startTime;
		this.canRun = false;

		this.modifiedFiles = mergeSettings(this.options, callback);

		const endTime = Date.now();
		this.log(`Files merged in ${((endTime - startTime) % 60000) / 1000}s`);
		this.canRun = true;

		callback();
	}
/**
	 * Runs at each webpack run.
	 * Calls cmf merge function with the modified cmf config.
	 */
Runs at each webpack run.
Calls cmf merge function with the modified cmf config.
Runs at each webpack run . Calls cmf merge function with the modified cmf config .
function emit(compilation, callback) {
		this.log(
			'emit',
			JSON.stringify({ canRun: this.canRun, lastRun: this.lastRun, lastWatch: this.lastWatch }),
		);
		if (!this.canRun || (this.lastRun && this.lastWatch && this.lastRun > this.lastWatch)) return;
		const startTime = Date.now();
		this.lastRun = startTime;
		this.canRun = false;
		this.modifiedFiles = mergeSettings(this.options, callback);
		const endTime = Date.now();
		this.log(`Files merged in ${((endTime - startTime) % 60000) / 1000}s`);
		this.canRun = true;
		callback();
	}
function emit ( compilation , callback ) { this . log ( 'emit' , JSON . stringify ( { canRun : this . canRun , lastRun : this . lastRun , lastWatch : this . lastWatch } ) , ) ; if ( ! this . canRun || ( this . lastRun && this . lastWatch && this . lastRun > this . lastWatch ) ) return ; const startTime = Date . now ( ) ; this . lastRun = startTime ; this . canRun = false ; this . modifiedFiles = mergeSettings ( this . options , callback ) ; const endTime = Date . now ( ) ; this . log ( ` ${ ( ( endTime - startTime ) % 60000 ) / 1000 } ` ) ; this . canRun = true ; callback ( ) ; }
Runs at each webpack run.
Runs at each webpack run .