Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
gatsby-1-config-extract-plugin
Advanced tools
Readme
extract-text-webpack-plugin instance getter for Gatsby v1 plugins. Allows all plugins to share the same instance. Should only be used by plugins that output styles for the main entry point and bundle (which is the vast majority of style plugins).
npm install gatsby-1-config-extract-plugin --save-dev
This module exports two named functions, extractTextPlugin
and extractTextFilename
. Note that
Gatsby's webpack config includes the extract plugin instances in the plugins
array, so plugins
that use this module don't need to - just use it's extract
method in your loaders.
extractTextPlugin(stage)
Accepts the current stage name and returns the appropriate extract-text-webpack-plugin instance.
Anywhere you would normally use new ExtractTextPlugin()
, use this instead.
extractTextFilename(stage)
Accepts the current stage name and returns the name of the extracted text output file. Not required for most use cases.
// in gatsby-node.js
const { extractTextPlugin } = require(`gatsby-1-config-extract-plugin`);
exports.modifyWebpackConfig = ({ config, stage }) => {
switch (stage) {
case `build-css`: {
loader: extractTextPlugin(stage).extract(`style`, `css`);
}
}
};
FAQs
extract-text-webpack-plugin instance getter for Gatsby v1 plugins
We found that gatsby-1-config-extract-plugin 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.