Skip to content
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

关于模板中的空格问题 #78

Closed
uje opened this issue Oct 31, 2014 · 8 comments
Closed

关于模板中的空格问题 #78

uje opened this issue Oct 31, 2014 · 8 comments
Labels

Comments

@uje
Copy link

uje commented Oct 31, 2014

是否做个配置,去除模板中多余的空格?

@popomore
Copy link
Member

具体需求是什么,不是所有的空格都能替换的

@popomore
Copy link
Member

可以用这个 https://www.npmjs.org/package/htmlclean

@uje
Copy link
Author

uje commented Oct 31, 2014

我在压缩之后发现模板的js里面有很多空格,但是一个tpl里面的空格是缩进生成的,是可以去掉或替换成一个空格的

@army8735
Copy link
Member

htmlclean不行吗?

@popomore
Copy link
Member

纯 html 能用 htmlclean,其他模板都是预编译的

@uje
Copy link
Author

uje commented Jan 1, 2015

如果一个插件能完成的为啥要用两个插件呢?

@popomore
Copy link
Member

popomore commented Jan 1, 2015

这里的 html 是会把 html 转成 js,可能跟你想的不一样,所以才问你的需求。

@uje
Copy link
Author

uje commented Jan 3, 2015

我的需求是在html转换成js前把空格及注释去掉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants