Replace cssnano with csso

This does better job at compressing the CSS and is lighter
This commit is contained in:
Nikita Karamov 2021-08-14 17:45:08 +02:00
parent a14e5deb5a
commit 5b18cc8301
No known key found for this signature in database
GPG key ID: 7FCADEDBB1AEBE44
3 changed files with 13 additions and 679 deletions

View file

@ -14,7 +14,7 @@ function html() {
function css() {
return gulp.src('./src/style/*.scss')
.pipe(sassSync().on('error', sass.logError))
.pipe(postcss([require('autoprefixer'), require('cssnano')]))
.pipe(postcss([require('autoprefixer'), require('postcss-csso')]))
.pipe(gulp.dest('./dist/'));
}

View file

@ -15,12 +15,12 @@
"@mr-hope/gulp-sass": "^2.0.0",
"autoprefixer": "^10.2.4",
"browserslist": "^4.16.6",
"cssnano": "^5.0.2",
"gulp": "^4.0.2",
"gulp-postcss": "^9.0.0",
"gulp-pug": "^4.0.1",
"gulp-terser": "^2.0.1",
"postcss": "^8.2.15",
"postcss-csso": "^5.0.1",
"pug": "^3.0.1",
"sass": "^1.32.13",
"sirv-cli": "^1.0.10"

688
yarn.lock

File diff suppressed because it is too large Load diff