Skip to content

Commit

Permalink
Revert cleanCSS usage to 3.4 api
Browse files Browse the repository at this point in the history
  • Loading branch information
kategengler committed Apr 3, 2023
1 parent 5234cb1 commit 891c414
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions broccoli-clean-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ class CleanCSSFilter extends BroccoliPersistentFilter {
processString(contents, relativePath) {
let fullPath = path.resolve(this.inputPaths[0], relativePath);

return this.cleanCSS
.minify({
[fullPath]: { styles: contents },
})
.then((result) => result.styles);
return this.cleanCSS.minify({
[fullPath]: { styles: contents },
}).styles;
}
}

Expand Down

0 comments on commit 891c414

Please sign in to comment.