Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@aofl/html-webpack-purify-internal-css-plugin
Advanced tools
This is a plugin for [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin). It uses [PurgeCSS](https://purgecss.com/) to remove all unused css rules from internal styles of the generated html.
This is a plugin for html-webpack-plugin. It uses PurgeCSS to remove all unused css rules from internal styles of the generated html.
npm i -D @aofl/html-webpack-purify-internal-css-plugin
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackPurifyInternalCssPlugin = require('@aofl/html-webpack-purify-internal-css-plugin');
module.export = {
...
plugins: [
new HtmlWebpackPlugin(),
new HtmlWebpackPurifyInternalCssPlugin()
]
}
Level specifies pruning strategy.
option | Description |
---|---|
auto | This is the default behavior. It prunes unused css rules based on the generated html and the purgeCss options. |
safelist | Only keep whitelisted rules. |
all | Prune everything |
none | Prune nothing. (Useful for development to be able to toggle classes in devtools) |
module.export = {
...
plugins: [
new HtmlWebpackPurifyInternalCssPlugin({
level: process.env.NODE_ENV === 'development'? 'none': 'auto'
})
]
}
module.export = {
...
plugins: [
new HtmlWebpackPurifyInternalCssPlugin({
level: process.env.NODE_ENV === 'development'? 'none': 'auto',
purgeCss: {
fontFace?: boolean,
keyframes?: boolean,
rejected?: boolean,
variables?: boolean,
safelist?: UserDefinedSafelist,
blocklist?: StringRegExpArray,
}
})
]
}
FAQs
This is a plugin for [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin). It uses [PurifyCSS](https://github.com/purifycss/purifycss) to remove all unused css rules from internal styles of the generated html.
The npm package @aofl/html-webpack-purify-internal-css-plugin receives a total of 114 weekly downloads. As such, @aofl/html-webpack-purify-internal-css-plugin popularity was classified as not popular.
We found that @aofl/html-webpack-purify-internal-css-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.