
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
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 2 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
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.