{"_id":"@apimediaru/gulp-clean-css","_rev":"1-a6f2ce73064f219266d92969fc2c82df","name":"@apimediaru/gulp-clean-css","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@apimediaru/gulp-clean-css","description":"Minify css with clean-css.","homepage":"https://github.com/scniro/gulp-clean-css#readme","version":"1.0.0","author":{"name":"scniro"},"license":"MIT","bugs":{"url":"https://github.com/scniro/gulp-clean-css/issues","email":"scniro@outlook.com"},"repository":{"type":"git","url":"git+https://github.com/scniro/gulp-clean-css.git"},"keywords":["css","clean","minify","uglify","clean-css","minify-css","gulp-minify-css","gulp-clean-css","gulpplugin","gulpfriendly"],"nyc":{"report-dir":"./.coverage","reporter":["lcov","text"],"include":["index.js"],"sourceMap":false,"temp-dir":"./.coverage/.nyc_output"},"dependencies":{"clean-css":"^5.1.1","plugin-error":"1.0.1","through2":"3.0.1","vinyl-sourcemaps-apply":"0.2.1"},"devDependencies":{"chai":"4.2.0","chai-string":"1.5.0","coveralls":"3.0.9","express":"4.17.1","fancy-log":"1.3.3","gulp":"4.0.2","gulp-concat":"2.6.1","gulp-rename":"2.0.0","gulp-sass":"4.0.2","gulp-sourcemaps":"2.6.5","mocha":"7.0.0","nyc":"15.0.0","vinyl":"2.2.0"},"scripts":{"cover":"nyc npm test","test":"mocha ./index.spec.js"},"gitHead":"a5c5933f55f51f519c2c694fa01e5c5b5c7a65c2","_id":"@apimediaru/gulp-clean-css@1.0.0","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"integrity":"sha512-mmKM4bF1GDPuxCq3kAB+WfawntQ8WDyqOKjZBOiI+V2mzOZj0yLO7iuxWblVjzxpqAc1Ft/tFS6vdJ80vfUlYQ==","shasum":"1ddaf195f3699d9ccff294373f20be2ac45c4f2b","tarball":"https://registry.npmjs.org/@apimediaru/gulp-clean-css/-/gulp-clean-css-1.0.0.tgz","fileCount":4,"unpackedSize":7859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQnSdCRA9TVsSAnZWagAAY74QAIZvOgU7kdB4PT+aXj/y\noYZluR4oF2KGAGqiUKTklcn7Bbr5TGuA/to00u5jodei5Fsdn4ERAnCmjIS+\ndXeHHWauQRtUAH/C0F3E2J3BBc1uynqunUpXC1vN5/t7diyGZvLRsg1uTE0t\nZz+oC8AkPFjNNDe/oFdwAiHzwIHvYxooL4Nwg2dSSe2C+U4ghpjhgmp/+8Mm\n+AEbeVI89w0nBEGlwkoNzd5TnDkF3gO7Q38MmgucqbUyexRcztbNjSJylXr+\neOqSHgXJJyKeZCDw5V5zZOWQhK+UM7yRjp7AxYboqADAnBhKnKL1vWDMACH5\nygBhBimBkn1xONoqQDw5C5PumVI+FRlnQW04XBmi6igqlMHOHrldKciqhrEo\nfzS55xQHLlwm2v3SoZ/97yqZl10a2TTaoopgubHyabSLyy+NElpxpsxaRBoR\nt2h8KzaLrruvKUynyxUpzpIlyxF38T+UGED5yiQW7njU1m7oO9SbyxXpI0Eo\n4IetFf+63PWdxldOw9Rft4rVs/CS4cPqUFLGZPBds1fsZw4m4l4nsA7F4IGX\nS/GHNJFriEV2zHXUjplBrP9fqIuGuhyVL3qBAt+9F2V+/3l4OgTsiFKKv61f\n/8w4JZ9wiIwCNyWMt6HZUtzZVXKjW0JiEz3YFzzuU4Ulj3kdid5RUtXJHNix\n5282\r\n=nLBo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCitEHHl7SkMnF6/9zDOd1X+mfEE7G+FTJ0Sgypvz80wIgNhS9cT8rx/NQ0ass9M6ufiZ60Izjz7FmidUXWrUYOyI="}]},"_npmUser":{"name":"exileofaranei","email":"anoceanofmyownregret@gmail.com"},"directories":{},"maintainers":[{"name":"graandy","email":"it@apimedia.ru"},{"name":"exileofaranei","email":"anoceanofmyownregret@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-clean-css_1.0.0_1614967965313_0.7312422590243328"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-05T18:12:45.106Z","1.0.0":"2021-03-05T18:12:45.556Z","modified":"2022-04-04T14:38:08.030Z"},"maintainers":[{"name":"graandy","email":"it@apimedia.ru"},{"name":"exileofaranei","email":"anoceanofmyownregret@gmail.com"}],"description":"Minify css with clean-css.","homepage":"https://github.com/scniro/gulp-clean-css#readme","keywords":["css","clean","minify","uglify","clean-css","minify-css","gulp-minify-css","gulp-clean-css","gulpplugin","gulpfriendly"],"repository":{"type":"git","url":"git+https://github.com/scniro/gulp-clean-css.git"},"author":{"name":"scniro"},"bugs":{"url":"https://github.com/scniro/gulp-clean-css/issues","email":"scniro@outlook.com"},"license":"MIT","readme":"# gulp-clean-css\r\n\r\n[![Build Status](https://img.shields.io/travis/scniro/gulp-clean-css.svg?style=flat-square)](https://travis-ci.org/scniro/gulp-clean-css)\r\n[![Dependency Status](https://img.shields.io/david/scniro/gulp-clean-css.svg?label=deps&style=flat-square)](https://david-dm.org/scniro/gulp-clean-css)\r\n[![devDependency Status](https://img.shields.io/david/dev/scniro/gulp-clean-css.svg?label=devDeps&style=flat-square)](https://david-dm.org/scniro/gulp-clean-css#info=devDependencies)\r\n[![Coverage](https://img.shields.io/coveralls/scniro/gulp-clean-css.svg?style=flat-square)](https://coveralls.io/github/scniro/gulp-clean-css)\r\n[![Downloads](https://img.shields.io/npm/dm/gulp-clean-css.svg?style=flat-square)](https://www.npmjs.com/package/gulp-clean-css)\r\n[![NPM Version](https://img.shields.io/npm/v/gulp-clean-css.svg?style=flat-square)](https://www.npmjs.com/package/gulp-clean-css)\r\n[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/alferov/awesome-gulp#minification)\r\n\r\n> [gulp](http://gulpjs.com/) plugin to minify CSS, using [clean-css](https://github.com/jakubpawlowicz/clean-css)\r\n\r\n## Regarding Issues\r\n\r\nThis is just a simple [gulp](https://github.com/gulpjs/gulp) plugin, which means it's nothing more than a thin wrapper around `clean-css`. If it looks like you are having CSS related issues, please contact [clean-css](https://github.com/jakubpawlowicz/clean-css/issues). Only create a new issue if it looks like you're having a problem with the plugin itself.\r\n\r\n## Install\r\n\r\n```\r\nnpm install gulp-clean-css --save-dev\r\n```\r\n\r\n## API\r\n\r\n### cleanCSS([*options*], [*callback*])\r\n\r\n#### options\r\n\r\nSee the [`CleanCSS` options](https://github.com/jakubpawlowicz/clean-css#how-to-use-clean-css-api).\r\n\r\n```javascript\r\nconst gulp = require('gulp');\r\nconst cleanCSS = require('gulp-clean-css');\r\n\r\ngulp.task('minify-css', () => {\r\n  return gulp.src('styles/*.css')\r\n    .pipe(cleanCSS({compatibility: 'ie8'}))\r\n    .pipe(gulp.dest('dist'));\r\n});\r\n```\r\n\r\n#### callback\r\n\r\nUseful for returning details from the underlying [`minify()`](https://github.com/jakubpawlowicz/clean-css#using-api) call. An example use case could include logging `stats` of the minified file. In addition to the default object, `gulp-clean-css` provides the file `name` and `path` for further analysis.\r\n\r\n```javascript\r\nconst gulp = require('gulp');\r\nconst cleanCSS = require('gulp-clean-css');\r\n\r\ngulp.task('minify-css', () => {\r\n  return gulp.src('styles/*.css')\r\n    .pipe(cleanCSS({debug: true}, (details) => {\r\n      console.log(`${details.name}: ${details.stats.originalSize}`);\r\n      console.log(`${details.name}: ${details.stats.minifiedSize}`);\r\n    }))\r\n  .pipe(gulp.dest('dist'));\r\n});\r\n```\r\n\r\n[Source Maps](http://www.html5rocks.com/tutorials/developertools/sourcemaps/) can be generated by using [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps).\r\n\r\n```javascript\r\n\r\nconst gulp = require('gulp');\r\nconst cleanCSS = require('gulp-clean-css');\r\nconst sourcemaps = require('gulp-sourcemaps');\r\n\r\ngulp.task('minify-css',() => {\r\n  return gulp.src('./src/*.css')\r\n    .pipe(sourcemaps.init())\r\n    .pipe(cleanCSS())\r\n    .pipe(sourcemaps.write())\r\n    .pipe(gulp.dest('dist'));\r\n});\r\n```\r\n\r\n## License\r\n\r\n[MIT](./LICENSE) © 2020 [scniro](https://github.com/scniro)\r\n","readmeFilename":"README.md"}