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.
@dumlj/seed-webpack-plugin
Advanced tools
Basic webpack plugins
There is a lot of duplication in the development of Webpack plugins, so all '@dumlj/*-webpack-plugin's can inherit this basic plugin to make development more convenient.
package.json
will be prompted (in nested plug-ins, undeclared dependencies will be ignored).# use npm
$ npm install --dev @dumlj/seed-webpack-plugin
# use yarn
$ yarn add --dev @dumlj/seed-webpack-plugin
# use pnpm
$ pnpm add @dumlj/seed-webpack-plugin -D
import { SeedWebpackPlugin, type SeedWebpackPluginOptions } from '@dumlj/seed-webpack-plugin'
import type { Compiler } from 'webpack'
export interface CustomWebpackPluginOptions extends SeedWebpackPluginOptions {
unnecessary: string
}
export class CustomWebpackPlugin extends SeedWebpackPlugin {
static PLUGIN_NAME = 'custom-webpack-plugin'
protected unnecessary: string
constructor(options?: CustomWebpackPluginOptions) {
super(options)
const { unnecessary } = options || {}
this.unnecessary = unnecessary
}
public apply(compiler: Compiler) {
super.apply(compiler)
if (this.isSkipIncomplete('skip operation when necessary options are missed.', { unnecessary: this.unnecessary })) {
return
}
compiler.hooks.thisCompilation.tap(this.pluginName, () => {
this.logger.info('todo something...')
})
}
}
@dumlj/seed-webpack-plugin ├─┬ @dumlj/feature-updater │ ├─── @dumlj/shell-lib │ ├─── @dumlj/util-lib │ └─── @dumlj/mock-libPRIVATE └── @dumlj/mock-libPRIVATE
FAQs
Basic webpack plugins
The npm package @dumlj/seed-webpack-plugin receives a total of 140 weekly downloads. As such, @dumlj/seed-webpack-plugin popularity was classified as not popular.
We found that @dumlj/seed-webpack-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.