Skip to content

Commit d11395d

Browse files
author
Ivan Demidov
committed
Fixed #77, change csso to postcss-csso
1 parent 8b4623a commit d11395d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

gulpfile.babel.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import postcss from 'gulp-postcss';
33
import rename from 'gulp-rename';
44
import ghPages from 'gulp-gh-pages';
55
import pkg from './package.json';
6-
import csso from 'gulp-csso';
76
import shell from 'gulp-shell';
87

98
const slim_banner = (
@@ -68,13 +67,14 @@ gulp.task('pss', ['test'],() => {
6867
.pipe(rename({ extname: '.css' }))
6968
.pipe(gulp.dest('./dist/css/'))
7069
.pipe(gulp.dest('./docs/dist/css/'))
71-
.pipe(csso())
70+
.pipe(postcss([
71+
require('postcss-devtools')(),
72+
require('postcss-csso')()
73+
]))
7274
.pipe(rename({ extname: '.min.css' }))
7375
.pipe(gulp.dest('./dist/css/'))
7476
.pipe(gulp.dest('./docs/dist/css/'))
7577
});
7678

77-
78-
7979
gulp.task('default',['pss']);
8080
gulp.task('test',['psslint', 'csssupport']);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"babel-register": "^6.5.2",
3333
"doiuse": "^2.2.2",
3434
"gulp": "^3.9.1",
35-
"gulp-csso": "^1.0.1",
3635
"gulp-gh-pages": "^0.5.4",
3736
"gulp-postcss": "^6.1.0",
3837
"gulp-rename": "^1.2.2",
@@ -45,6 +44,7 @@
4544
"postcss-clearfix": "^0.2.1",
4645
"postcss-conditionals": "^2.0.1",
4746
"postcss-cssnext": "^2.4.0",
47+
"postcss-csso": "^1.0.0",
4848
"postcss-custom-properties": "^5.0.0",
4949
"postcss-devtools": "^1.0.0",
5050
"postcss-easy-import": "^1.0.1",

0 commit comments

Comments
 (0)