在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):sindresorhus/gulp-recess开源软件地址(OpenSource Url):https://github.com/sindresorhus/gulp-recess开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):no longer maintainedDeprecated since RECESS isgulp-recess
Issues with the output should be reported on the RECESS issue tracker. Install
Usagevar gulp = require('gulp');
var recess = require('gulp-recess');
gulp.task('default', function () {
return gulp.src('src/app.css')
.pipe(recess())
.pipe(recess.reporter())
.pipe(gulp.dest('dist'));
}); APIOptions can be specified programmatically as part of the task configuration using the options below.
Additionally or alternatively, you can use a The recess(options)Run recess on each file // default options
includePath: [] // Additional paths to look for `@import`'ed LESS files.
strictPropertyOrder: true // Complains if not strict property order
noIDs: true // Doesn't complain about using IDs in your stylesheets
noJSPrefix: true // Doesn't complain about styling .js- prefixed classnames
noOverqualifying: true // Doesn't complain about overqualified selectors (ie: div#foo.bar)
noUnderscores: true // Doesn't complain about using underscores in your class names
noUniversalSelectors: true // Doesn't complain about using the universal * selector
zeroUnits: true // Doesn't complain if you add units to values of 0 Writes {
success: true, // Did it succeed?
status: 'Perfect!', // Recess status
failureCount: 0, // Number of errors
results: [], // Recess failure details
errors: [], // Recess errors
options: {} // The options passed to Recess
} recess.reporter(options)Write the report on each failing file. (Passing files write no output.) // default options
fail: true // If true, it writes error event on failure
minimal: false // If true, it only lists failure filenames omitting details LicenseMIT © Sindre Sorhus |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论