【文件属性】:
文件名称:grunt-unclassify:删除 html 中未使用的 css 类
文件大小:26KB
文件格式:ZIP
更新时间:2021-07-04 07:29:50
JavaScript
咕噜咕噜取消分类
删除 html 中未使用的 css 类。
入门
这个插件需要 Grunt。
如果您以前没有使用过 ,请务必查看指南,因为它解释了如何创建以及安装和使用 Grunt 插件。 熟悉该过程后,您可以使用以下命令安装此插件:
npm install grunt-unclassify --save-dev
安装插件后,可以使用以下 JavaScript 代码在 Gruntfile 中启用它:
grunt . loadNpmTasks ( 'grunt-unclassify' ) ;
“取消分类”任务
概述
在项目的Gruntfile,添加一个名为段unclassify到传送到数据对象grunt.initConfig() 。
grunt . initConfig ( {
unclassify : {
options : {
// Task-sp
【文件预览】:
grunt-unclassify-master
----.jshintrc(191B)
----.gitignore(31B)
----package.json(919B)
----Gruntfile.js(4KB)
----README.md(6KB)
----test()
--------unclassify_test.js(6KB)
--------expected()
--------fixtures()
----tasks()
--------unclassify.js(11KB)
----.editorconfig(214B)