Skip to content

Commit

Permalink
Updates clean-css dependency to version 5.
Browse files Browse the repository at this point in the history
Version 5 disables rebasing as default so tests changed accordingly.
  • Loading branch information
jakubpawlowicz committed Feb 12, 2021
1 parent 7eddd7d commit 9d80325
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ describe('gulp-clean-css: rebase', () => {
it('should not rebase files by default - do not resolve relative files', done => {

gulp.src(['test/fixtures/rebasing/subdir/insub.css'])
.pipe(cleanCSS({rebase: false}))
.pipe(cleanCSS())
.on('data', file => {

let expected = `
Expand All @@ -307,7 +307,7 @@ describe('gulp-clean-css: rebase', () => {
it('should by rebase files with target specified', done => {

gulp.src(['test/fixtures/rebasing/subdir/insub.css'])
.pipe(cleanCSS({rebaseTo: 'test'}))
.pipe(cleanCSS({rebase: true, rebaseTo: 'test'}))
.on('data', file => {

let expected = `
Expand All @@ -327,7 +327,7 @@ describe('gulp-clean-css: rebase', () => {
it('should rebase to current relative file location - relative imports are resolved like in the browser', done => {

gulp.src(['test/fixtures/rebasing/subdir/import.css'])
.pipe(cleanCSS())
.pipe(cleanCSS({rebase: true}))
.on('data', file => {

let expected = `
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"temp-dir": "./.coverage/.nyc_output"
},
"dependencies": {
"clean-css": "4.2.1",
"clean-css": "5.x",
"plugin-error": "1.0.1",
"through2": "3.0.1",
"vinyl-sourcemaps-apply": "0.2.1"
Expand Down

0 comments on commit 9d80325

Please sign in to comment.