Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@mands/hbs-html-minifier
Advanced tools
## Desciption This is a Webpack plugin for Handlebars and HTML file minification. `express-minify-html` plugin is adding about 100ms overhead to run-time and affected site speed.
This is a Webpack plugin for Handlebars and HTML file minification.
express-minify-html
plugin is adding about 100ms overhead to run-time and affected site speed.
hbs-html-minifier
is substitusion for express-minify-html
.
After Webpack build, hbs-html-minifier
removes white spaces for hbs files and transfer to new directory.
It minifies files during the build, so there is no impact on run-time.
"@mands/hbs-html-minifier": "<version>"
as a dependency to the package.json
.npm install
<!-- import on the top of the file -->
const HandleberMinifyPlugin = require('@mands/hbs-html-minifier');
plugins:
as following.plugins: [
new HandleberMinifyPlugin([
{
page: 'l' // foldername for each page (ex. fesk-plp => 'l', fesk-home-page => 'hp' etc.)
}
])
]
server.js
.Setting new views
.
server.set('views', './l/hbs/src/server/views/pages'); // This example is setting for 'fesk-plp'
Setting new partialDir
for partials and npm_modules.
// This is an example for fesk-plp
partialsDir: [
'l/hbs/src/server/views/partials',
'l/hbs/src/server/views/partials/layouts',
'l/hbs/src/server/views/partials/pagination',
{
dir: 'l/hbs/mns-core-ui-header/templates/header/partials',
namespace: 'templates/header/partials'
},
{
dir: 'l/hbs/mns-fe-patterns',
namespace: 'mns-fe-patterns'
}
]
FAQs
## Desciption This is a Webpack plugin for Handlebars and HTML file minification. `express-minify-html` plugin is adding about 100ms overhead to run-time and affected site speed.
The npm package @mands/hbs-html-minifier receives a total of 0 weekly downloads. As such, @mands/hbs-html-minifier popularity was classified as not popular.
We found that @mands/hbs-html-minifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.