whymarrh / metalsmith-html-minifier Goto Github PK
View Code? Open in Web Editor NEWA Metalsmith plug-in to minify HTML files
License: Other
A Metalsmith plug-in to minify HTML files
License: Other
Current version is 1.1.1, dependency should probably be "^1.1.0"
Hello,
Is it possible to support multimatch filtering to input files?
The docs should reference Yarn
Currently, Travis CI only runs tests on v4 and v5
This is a source of frustration—the tests fail with useless information when the done
callback is called with an error. The tests should assert that the callback isn't called with an error.
Refs #13
The options should always be an object
.
Update the Jest version used by the project
Replace JSCS with ESLint:
JSCS has merged with ESLint
There are a ton of bug fixes and improvements we're missing out on right now.
The version of Jest used here is kinda old and there is a single? breaking change preventing a version bump because it fails a test.
I'm running the plugin over about 100+ html pages. Is there a way to view the progress? It seems to just get stuck when I start a build. Any thoughts?
If the project can drop Node v4 support, Babel shouldn't be needed. (Babel is currently only used to allow for default arguments.)
The actual minifier removes the type="text"
attribute from input fields, setting the removeRedundantAttributes
to false
removes this behavior.
Apparently this values should be at false as written here : https://github.com/kangax/html-minifier/blob/b96247c0001be769e6c80541f57ed9cac9798d77/README.md#options-quick-reference
Don’t know if it’s a metalsmith-html-minifier issue or only a html-minifier issue, but there it is…
Refs #27
Matching all HTML files should use **/*.html
instead of *.html
I just saw that any files that are in a nested folder (relative to .src()) aren't minified with the default options. Fixed by setting the pattern to "**/*.html"
, instead of "*.html"
.
Hey thanks for this project! Would you be open at making html-minifier a peer dependency instead of a direct dependency?
The benefit of making it a peer dependency is that users can upgrade html-minifier minor versions without bugging you to upgrade your own lib.
Let me know if that's OK and Ill open a PR
Tagging releases
You can automatically tag releases with the
tag
option:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.