Commit 05b461bf authored by Nikolay Gromov's avatar Nikolay Gromov

Добавил вывод размера скомпилированного CSS

parent 2acf361c
......@@ -31,6 +31,7 @@ const concat = require('gulp-concat');
const browserSync = require('browser-sync').create();
const replace = require('gulp-replace');
const ghPages = require('gulp-gh-pages');
const size = require('gulp-size');
const fs = require('fs');
// Запуск `NODE_ENV=production npm start [задача]` приведет к сборке без sourcemaps
......@@ -79,6 +80,11 @@ gulp.task('less', function () {
.pipe(rename('style.min.css'))
.pipe(debug({title: "RENAME:"}))
.pipe(gulpIf(isDev, sourcemaps.write()))
.pipe(size({
title: 'Размер',
showFiles: true,
showTotal: false,
}))
.pipe(gulp.dest(dirs.build + '/css'))
.pipe(browserSync.stream());
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment