Browse Source

Using crass for CSS minification

rfm69
Xose Pérez 6 years ago
parent
commit
6f62758244
4 changed files with 3257 additions and 3266 deletions
  1. BIN
      code/espurna/data/index.html.gz
  2. +3254
    -3262
      code/espurna/static/index.html.gz.h
  3. +2
    -2
      code/gulpfile.js
  4. +1
    -2
      code/package.json

BIN
code/espurna/data/index.html.gz View File


+ 3254
- 3262
code/espurna/static/index.html.gz.h
File diff suppressed because it is too large
View File


+ 2
- 2
code/gulpfile.js View File

@ -29,7 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
const fs = require('fs');
const gulp = require('gulp');
const htmlmin = require('gulp-htmlmin');
const cleancss = require('gulp-clean-css');
const uglify = require('gulp-uglify');
const gzip = require('gulp-gzip');
const inline = require('gulp-inline');
@ -38,6 +37,7 @@ const favicon = require('gulp-base64-favicon');
const htmllint = require('gulp-htmllint');
const log = require('fancy-log');
const csslint = require('gulp-csslint');
const crass = require('gulp-crass');
const dataFolder = 'espurna/data/';
const staticFolder = 'espurna/static/';
@ -117,7 +117,7 @@ gulp.task('buildfs_inline', function() {
pipe(inline({
base: 'html/',
js: [uglify],
css: [cleancss, inlineImages],
css: [crass, inlineImages],
disabledTypes: ['svg', 'img']
})).
pipe(htmlmin({


+ 1
- 2
code/package.json View File

@ -1,6 +1,6 @@
{
"name": "esp8266-filesystem-builder",
"version": "0.2.0",
"version": "0.2.1",
"description": "Gulp based build system for ESP8266 file system files",
"main": "gulpfile.js",
"author": "Xose Pérez <xose.perez@gmail.com>",
@ -10,7 +10,6 @@
"fancy-log": "^1.3.2",
"gulp": "^3.9.1",
"gulp-base64-favicon": "^1.0.2",
"gulp-clean-css": "^3.4.2",
"gulp-css-base64": "^1.3.4",
"gulp-csslint": "^1.0.0",
"gulp-gzip": "^1.4.0",


Loading…
Cancel
Save