Skip to content

Commit e824ff2

Browse files
committed
update Minifying CSS gulp plugin
1 parent 431ce7c commit e824ff2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The `filename` option is not necessary, it's handled automatically by this plugi
6262

6363
## Minifying CSS
6464

65-
If you want to minify/compress your css, you can use either the [gulp-minify-css](https://github.com/jonathanepollack/gulp-minify-css) plugin for gulp, or the [less-clean-css](https://github.com/less/less-plugin-clean-css) plugin for less. Examples of both are shown below:
65+
If you want to minify/compress your css, you can use either the [gulp-cssnano](https://www.npmjs.com/package/gulp-cssnano) plugin for gulp, or the [less-clean-css](https://github.com/less/less-plugin-clean-css) plugin for less. Examples of both are shown below:
6666

6767
```js
6868
// Using a less plugin to minify css
@@ -78,11 +78,11 @@ gulp.src('./less/**/*.less')
7878

7979
```js
8080
// Using a gulp plugin to minify css
81-
var minifyCSS = require('gulp-minify-css');
81+
var cssnano = require('gulp-cssnano');
8282

8383
gulp.src('./less/**/*.less')
8484
.pipe(less())
85-
.pipe(minifyCSS())
85+
.pipe(cssnano())
8686
.pipe(gulp.dest('./public/css'));
8787
```
8888

0 commit comments

Comments
 (0)