Skip to content
This repository has been archived by the owner on Nov 9, 2019. It is now read-only.

Commit

Permalink
fix paths with current version of gulp-clean-css
Browse files Browse the repository at this point in the history
  • Loading branch information
laufhannes committed Dec 29, 2016
1 parent 6934b9c commit 80a8908
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions gulpfile.js
Expand Up @@ -24,8 +24,7 @@ function styles() {
return gulp.src(config.less.main.src)
.pipe(sourcemaps.init())
.pipe(less({ relativeUrls: true, paths: [ config.less.main.root ] }))
.pipe(cleanCSS({ processImport: true, relativeTo: config.less.main.root }))
.pipe(cleanCSS({ relativeTo: config.less.dest, target: config.less.dest }))
.pipe(cleanCSS({ processImport: true, relativeTo: config.less.main.root, target: config.less.dest }))
.pipe(sourcemaps.write())
.pipe(gulp.dest(config.less.dest));
}
Expand All @@ -35,8 +34,7 @@ function stylesInstaller() {
return gulp.src(config.less.installer.src)
.pipe(sourcemaps.init())
.pipe(less({ relativeUrls: true, paths: [ config.less.installer.root ] }))
.pipe(cleanCSS({ processImport: true, relativeTo: config.less.installer.root }))
.pipe(cleanCSS({ relativeTo: config.less.dest, target: config.less.dest }))
.pipe(cleanCSS({ processImport: true, relativeTo: config.less.installer.root, target: config.less.dest }))
.pipe(sourcemaps.write())
.pipe(gulp.dest(config.less.dest));
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -15,10 +15,10 @@
"bower": "^1.7.9",
"del": "^2.2.0",
"gulp": "github:gulpjs/gulp#4.0",
"gulp-clean-css": "^2.0.9",
"gulp-clean-css": "^2.3.2",
"gulp-cli": "gulpjs/gulp-cli",
"gulp-concat": "^2.5.2",
"gulp-less": "^3.1.0",
"gulp-less": "^3.3.0",
"gulp-phpunit": "^0.15.0",
"gulp-rename": "^1.2.0",
"gulp-shell": "^0.5.2",
Expand Down

0 comments on commit 80a8908

Please sign in to comment.