A minifier for WeChat Mini Program WXML files. Current stable version: 0.0.7. It removes whitespace and comments from WXML markup to reduce file size. This is a niche tool specifically for WeChat mini-program development, with no recent updates and limited options (whitespace and comment removal). Compared to generic HTML minifiers, it understands WXML syntax specifics.
npm install wxml-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: importing the CJS module and minifying a simple WXML string with whitespace and comment removal enabled by default.
Use require() or bundle with a CJS-compatible tool.
Keep for existing projects, but evaluate for new projects.
Set options { whitespace: false } to preserve whitespace in text nodes.Run 'npm install wxml-minifier' or 'npm i -D wxml-minifier'.
Use const minifier = require('wxml-minifier') or import * as wxmlMinifier from 'wxml-minifier' then wxmlMinifier.default().No dependency data recorded yet.