Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
gobble-html-minifier
Advanced tools
Simple wrapper to use html-minifier with gobble.
First, you need to have gobble installed - see the gobble readme for details. Then,
npm install --save-dev gobble-html-minifier
gobblefile.js
var gobble = require('gobble');
module.exports = gobble('src').transform('html-minifier', options);
The options
argument, if specified, is passed to html-minifier
. Please refer to the original documentation.
There is one extra option preset
in this plugin to try to make developer's life easier.
Type: string|undefined
The preset
option accepts one of three string value: "minimal"
, "safe"
, and "all"
. They correspond to the presets found on html-minifier's Github page. If left undefined or when set to unsupported value, it doesn't affect other options at all. Otherwise, the preset options act as the default and other options passed in overrides the preset.
// to use the "minimal" preset alone
gobble('src').transform('html-minifier', { preset: 'minimal' });
// use the "minimal" preset but turn off "removeComments"
gobble('src').transform('html-minifier', {
preset: 'minimal',
removeComments: false,
});
FAQs
Use html-minifier with gobble
The npm package gobble-html-minifier receives a total of 1 weekly downloads. As such, gobble-html-minifier popularity was classified as not popular.
We found that gobble-html-minifier 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.