Commit c0d4fecc authored by Son Nguyen's avatar Son Nguyen

Bug 1569121: Replacing deprecated gulp-minify-css by gulp-clean-css

behatnotneeded

Change-Id: Id89d92e2ac6735dbc9d2be126cd535eb832a2572
parent 869c6a96
......@@ -7,7 +7,7 @@ require('es6-promise').polyfill();
// Include Our Plugins
var sass = require('gulp-sass');
var path = require('path');
var minifyCSS = require('gulp-minify-css');
var cleanCSS = require('gulp-clean-css');
var autoprefixer = require('gulp-autoprefixer');
var bless = require('gulp-bless');
var es = require('event-stream');
......@@ -36,7 +36,7 @@ gulp.task('css', 'Compile SASS into CSS', function () {
browsers: ['last 4 version'],
cascade: false
}))
.pipe(gulpif(argv.production !== 'false', minifyCSS()))
.pipe(gulpif(argv.production !== 'false', cleanCSS()))
.pipe(gulpif(argv.production !== 'false', bless()))
.pipe(gulp.dest('style/', {cwd: themepath}));
});
......
{
"name": "mahara-themes",
"version": "1.0.0",
"version": "1.0.1",
"description": "Compiles SASS files into CSS for all Mahara themes",
"main": "gulpfile.js",
"dependencies": {
"gulp": "^3.9.0",
"gulp-minify-css": "^1.1.6",
"gulp-clean-css": "^2.0.6",
"gulp-sass": "^2.0.1",
"gulp-help": "^1.6.1",
"path": "^0.11.14",
......
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