grunt-html-prettyprinter美化HTML的任务入门在项目的旁边安装这个grunt插件:npm install grunt-html-prettyprinter 然后将此行添加到您项目的grunt.js gruntfile中:grunt.loadNpmTasks('grunt-html-prettyprinter'); 文档 grunt.initConfig({ // Beautify single file 'html-prettyprinter': { single: { // HTML file to beauty src: 'dirty/index.html', // Destination of HTML file dest: 'clean' }});
暂无评论