add removeHtmlSpace

This commit is contained in:
zhw2590582 committed 2019-11-22 20:27:10 +08:00
1 parent d8ba5c266e
commit be4d1d0437
7 files changed
+30 -18

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
module.exports = () => ({
name: 'removeHtmlSpace',
transform(code) {
return {
code: code.replace(/\\n?\s+</g, '<').replace(/>\\n?\s+/g, '>'),
};
},
});