Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81525151
NoEmitOnErrorsPlugin.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Sep 6, 13:26
Size
713 B
Mime Type
text/x-c++
Expires
Sun, Sep 8, 13:26 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20582355
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
NoEmitOnErrorsPlugin.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
/** @typedef {import("./Compiler")} Compiler */
class NoEmitOnErrorsPlugin {
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.shouldEmit.tap("NoEmitOnErrorsPlugin", compilation => {
if (compilation.getStats().hasErrors()) return false;
});
compiler.hooks.compilation.tap("NoEmitOnErrorsPlugin", compilation => {
compilation.hooks.shouldRecord.tap("NoEmitOnErrorsPlugin", () => {
if (compilation.getStats().hasErrors()) return false;
});
});
}
}
module.exports = NoEmitOnErrorsPlugin;
Event Timeline
Log In to Comment