Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
astro-remove-whitespace
Advanced tools
Astro integration that removes whitespace between HTML tags in build output
A simple Astro Plugin that removes unnecessary whitespace between HTML tags in your build output.
Originally created by Utsubo, a creative studio based in Japan, to optimize their web projects. We noticed that Astro's build process preserved whitespace between closing tags, which added unnecessary bytes to the final bundle. This plugin solves that issue by cleaning up the HTML output post-build.
npm install astro-remove-whitespace
Add the plugin to your astro.config.mjs
:
import removeTagWhitespace from 'astro-remove-whitespace';
export default defineConfig({
integrations: [
removeTagWhitespace()
],
});
Before:
</g> </g> </svg> </div> </button>
After:
</g></g></svg></div></button>
The plugin hooks into Astro's build process using the astro:build:done
hook. After the build is complete, it:
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details
Created and maintained by Utsubo - A Technology-First creative studio.
FAQs
Astro integration that removes whitespace between HTML tags in build output
The npm package astro-remove-whitespace receives a total of 7 weekly downloads. As such, astro-remove-whitespace popularity was classified as not popular.
We found that astro-remove-whitespace demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.