我正在寻找像
this或
this这样的东西
它能做什么
rewrites classes and ids in CSS,HTML,and JavaScript files,
doing something like .class to .a or #id to #a not sure the javascript obfu is great to use ( i prefer google closure to do this ) but the html and css is the question.
有什么办法吗?
解决方法
Google的
Closure Stylesheets可以重命名你的类名.它与
Closure Template结合使用HTML和
Closure Compiler的JavaScript.
Closure Stylesheets makes it possible to rename CSS class names in the generated stylesheet,which helps reduce the size of the CSS that is sent down to your users. Of course,this is not particularly useful unless the class names are renamed consistently in the HTML and JavaScript files that use the CSS. Fortunately,you can use the Closure Compiler to update the class names in your JavaScript and Closure Templates to update the class names in your HTML.