Replace cssnano with csso
This does better job at compressing the CSS and is lighter
This commit is contained in:
parent
a14e5deb5a
commit
5b18cc8301
3 changed files with 13 additions and 679 deletions
|
@ -14,7 +14,7 @@ function html() {
|
||||||
function css() {
|
function css() {
|
||||||
return gulp.src('./src/style/*.scss')
|
return gulp.src('./src/style/*.scss')
|
||||||
.pipe(sassSync().on('error', sass.logError))
|
.pipe(sassSync().on('error', sass.logError))
|
||||||
.pipe(postcss([require('autoprefixer'), require('cssnano')]))
|
.pipe(postcss([require('autoprefixer'), require('postcss-csso')]))
|
||||||
.pipe(gulp.dest('./dist/'));
|
.pipe(gulp.dest('./dist/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,12 +15,12 @@
|
||||||
"@mr-hope/gulp-sass": "^2.0.0",
|
"@mr-hope/gulp-sass": "^2.0.0",
|
||||||
"autoprefixer": "^10.2.4",
|
"autoprefixer": "^10.2.4",
|
||||||
"browserslist": "^4.16.6",
|
"browserslist": "^4.16.6",
|
||||||
"cssnano": "^5.0.2",
|
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-postcss": "^9.0.0",
|
"gulp-postcss": "^9.0.0",
|
||||||
"gulp-pug": "^4.0.1",
|
"gulp-pug": "^4.0.1",
|
||||||
"gulp-terser": "^2.0.1",
|
"gulp-terser": "^2.0.1",
|
||||||
"postcss": "^8.2.15",
|
"postcss": "^8.2.15",
|
||||||
|
"postcss-csso": "^5.0.1",
|
||||||
"pug": "^3.0.1",
|
"pug": "^3.0.1",
|
||||||
"sass": "^1.32.13",
|
"sass": "^1.32.13",
|
||||||
"sirv-cli": "^1.0.10"
|
"sirv-cli": "^1.0.10"
|
||||||
|
|
Reference in a new issue