Skip to content

Commit 8b38b67

Browse files
author
anthinkingcoder
committed
add imagemini
1 parent 696c331 commit 8b38b67

File tree

7 files changed

+3879
-607
lines changed

7 files changed

+3879
-607
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@
101101
</Row>
102102
```
103103
## 2.效果
104-
![](./static/grid.png)
104+
![](static/images/grid.png)

gulpfile.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const gulp = require('gulp');
2+
const imagemin = require('gulp-imagemin');
3+
4+
gulp.task('default', () => {
5+
gulp.src('static/images/*')
6+
.pipe(imagemin())
7+
.pipe(gulp.dest('static/'))
8+
});
9+

0 commit comments

Comments
 (0)