Sha256: 62b44b4cb25f1d77018058f9bb8c16e11806278bb4816718500d6455ed92a2b7

Contents?: true

Size: 512 Bytes

Versions: 7

Compression:

Stored size: 512 Bytes

Contents

/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
"use strict";

class NoEmitOnErrorsPlugin {
	apply(compiler) {
		compiler.plugin("should-emit", (compilation) => {
			if(compilation.errors.length > 0)
				return false;
		});
		compiler.plugin("compilation", (compilation) => {
			compilation.plugin("should-record", () => {
				if(compilation.errors.length > 0)
					return false;
			});
		});
	}
}

module.exports = NoEmitOnErrorsPlugin;

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
ilog-0.4.1 node_modules/webpack/lib/NoEmitOnErrorsPlugin.js
ilog-0.4.0 node_modules/webpack/lib/NoEmitOnErrorsPlugin.js
ilog-0.3.3 node_modules/webpack/lib/NoEmitOnErrorsPlugin.js
optimacms-0.4.3 spec/dummy/node_modules/webpack/lib/NoEmitOnErrorsPlugin.js
optimacms-0.4.3 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/node_modules/webpack/lib/NoEmitOnErrorsPlugin.js
optimacms-0.4.2 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/node_modules/webpack/lib/NoEmitOnErrorsPlugin.js
optimacms-0.4.2 spec/dummy/node_modules/webpack/lib/NoEmitOnErrorsPlugin.js