sass-unused:在SASS文件集合中查找未使用的变量的实用程序

时间:2024-06-05 17:56:05
【文件属性】:

文件名称:sass-unused:在SASS文件集合中查找未使用的变量的实用程序

文件大小:16KB

文件格式:ZIP

更新时间:2024-06-05 17:56:05

JavaScript

没用的 用于在SASS文件集合中查找未使用的变量,mixin和函数的实用程序。 用法 命令行 npm install -g sass-unused sass-unused ' src/**/*.scss ' 这将解析“ src”中的所有SASS文件,并打印已声明但未在其他地方引用的变量,函数和混合插件的标识符列表。 图书馆 var { findUnused } = require ( 'sass-unused' ) // "unused" is an object with keys for different types of SASS item // (variable, mixin, function etc.) listing unused items of that type. const unused = findUnused ( 'src/**/*.scss' ) ;


【文件预览】:
sass-unused-master
----lib()
--------find-unused.js(5KB)
----.travis.yml(36B)
----test()
--------find-unused-test.js(2KB)
----README.md(1KB)
----.gitignore(14B)
----index.js(82B)
----cli.js(604B)
----CHANGELOG.md(617B)
----package-lock.json(39KB)
----package.json(548B)

网友评论