Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
gatsby-plugin-remove-console
Advanced tools
Removes console calls from Gatsby production builds.
A plugin that adds support to remove all console.*
calls from Gatsby's production builds using babel-plugin-transform-remove-console
.
In
console.log('foo');
console.error('bar');
Out
npm install gatsby-plugin-remove-console && npm install babel-plugin-transform-remove-console --save-dev
or
yarn add gatsby-plugin-remove-console && yarn add babel-plugin-transform-remove-console --dev
Specify the plugin in your gatsby-config.js
. Here's an example:
// without options
module.exports = {
plugins: [
'gatsby-plugin-remove-console'
],
};
// with options
module.exports = {
plugins: [
{
resolve: 'gatsby-plugin-remove-console',
options: {
exclude: ['error', 'warn'], // <- will be removed all console calls except these
}
}
]
};
exclude
- An array of console methods to exclude from removal.
MIT, see LICENSE.md for details.
See CHANGELOG.md for details.
FAQs
Removes console calls from Gatsby production builds.
We found that gatsby-plugin-remove-console demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.