mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-22 17:23:50 +01:00
parent
e389e08841
commit
11bcdbdb27
@ -1,15 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
import { src, dest, parallel, series, watch } from 'gulp'
|
||||
import plugins from 'gulp-load-plugins'
|
||||
import del from 'del'
|
||||
import pkg from './package.json'
|
||||
import parallelize from 'concurrent-transform'
|
||||
import browser from 'browser-sync'
|
||||
import autoprefixer from 'autoprefixer'
|
||||
import cssnano from 'cssnano'
|
||||
import critical from 'critical'
|
||||
import imageminJpegoptim from 'imagemin-jpegoptim'
|
||||
import plugins from 'gulp-load-plugins'
|
||||
import del from 'del'
|
||||
import pkg from './package.json'
|
||||
import parallelize from 'concurrent-transform'
|
||||
import browser from 'browser-sync'
|
||||
import autoprefixer from 'autoprefixer'
|
||||
import cssnano from 'cssnano'
|
||||
import critical from 'critical'
|
||||
|
||||
// load plugins
|
||||
const $ = plugins()
|
||||
@ -253,7 +252,7 @@ export const icons = () => src(iconset.icons)
|
||||
//
|
||||
const imageminPlugins = [
|
||||
$.imagemin.gifsicle({ interlaced: true }),
|
||||
imageminJpegoptim(),
|
||||
$.imagemin.jpegtran(),
|
||||
$.imagemin.optipng({ optimizationLevel: 5 }),
|
||||
$.imagemin.svgo({ plugins: [{removeViewBox: false }]})
|
||||
]
|
||||
|
@ -53,8 +53,7 @@
|
||||
"gulp-stylus": ">=2.3.1",
|
||||
"gulp-svg-sprite": ">=1.2.2",
|
||||
"gulp-uglify": ">=1.2.0",
|
||||
"gulp-util": ">=3.0.6",
|
||||
"imagemin-jpegoptim": ">=5.0.0"
|
||||
"gulp-util": ">=3.0.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=5.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user