Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
webpack-isomorphic-compiler-reporter
Advanced tools
Pretty reporting for webpack-isomorphic-compiler
Beautiful reporting for webpack-isomorphic-compiler compilation events.
While webpack-sane-compiler-reporter works fine with this compiler, the output is incomplete. This reporter is specially designed to be isomorphic aware.
$ npm install webpack-isomorphic-compiler-reporter --save-dev
const startReporting = require('webpack-isomorphic-compiler-reporter');
const { stop, options } = startReporting(compiler, {/* options */});
// Now, just call compiler.run() or compiler.watch() to start a compilation and start outputting reports
// Calling stop() will stop listening to the compiler events
// Furthermore, you have access to the options that were computed by the merge of provided options and the defaults
Name | Description | Type | Default |
---|---|---|---|
stats | Display webpack stats after each compilation | boolean/string (true , false or 'once' ) | true |
humanErrors | Detects human errors related to webpack configuration mistakes (done only once) | boolean | true |
write | Function responsible for printing/outputting the generated report messages | function | Prints to stderr |
printStart | Function responsible for generating a message for when a compilation starts | function | |
printSuccess | Function responsible for generating a message when a compilation succeeds | function | |
printFailure | Function responsible for generating a message when a compilation fails | function | |
printInvalidate | Function responsible for generating a message when invalidate() is called when watching | function | |
printStats | Function responsible for generating a message representing a WebpackStats instance | function | |
printError | Function responsible for generating a message of a Error instance | function |
For convenience this package also exports the renderers used internally:
const reporter = require('webpack-isomorphic-compiler-reporter');
reporter(compiler, {
printError: (err) => `${reporter.renderers.renderError(err)}\n`,
});
You can also access the symbols that precede some messages.
const reporter = require('webpack-isomorphic-compiler-reporter');
reporter(compiler, {
printStart: () => `${reporter.symbols.start} A iniciar a compilação...\n`,
});
$ npm test
$ npm test -- --watch
during development
1.3.3 (2018-03-05)
<a name="1.3.2"></a>
FAQs
Pretty reporting for webpack-isomorphic-compiler
The npm package webpack-isomorphic-compiler-reporter receives a total of 106 weekly downloads. As such, webpack-isomorphic-compiler-reporter popularity was classified as not popular.
We found that webpack-isomorphic-compiler-reporter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.