-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ideas for minifiers #12
Comments
remove \n \t and ect tree.match(/^\n\s*$/, () => ''); https://github.com/posthtml/project-stub/blob/master/gulpfile.js#L14-L18 |
@voischev the module |
The biggest thing for me is to split out to separate plugins for individual test suites:
@maltsev normalize-html-whitespace is the most accurate. @voischev, the key is to normalize, not strip as to preserve rendered appearance. |
@stevenvachon, first of all, thank you for new plugin ideas! I'll consider splitting out the modules to separate plugins. But it'll be much harder for me to maintain a few dozens small plugins (documentation, infrastructure) instead of one |
No problem. It's definitely more work to create separate projects, at least initially. Once created, it will make dealing with tests much easier because there're fewer of them and they're all very specific to one feature. This is how cssnano and cssnext are designed. |
@stevenvachon, I agree with you. I'm also trying to write the modules and the tests as separated as possible, so it'll be easy to split off them later. |
Whitespace within attributes containing space-separated lists can also be normalized: <a href="#" class="class1 class2 " rel=" external nofollow ">link</a> -> <a href="#" class="class1 class2" rel="external nofollow">link</a> |
|
@stevenvachon, thanks! I've created an issue for your first idea: #27 |
svgo for inline svg |
|
Strip HTML from content within |
The text was updated successfully, but these errors were encountered: