Skip to content

Commit

Permalink
Merge pull request #304 from boris-petrov/update-clean-css
Browse files Browse the repository at this point in the history
  • Loading branch information
kategengler authored Jul 18, 2023
2 parents d90e731 + 4bf27eb commit 1101263
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
8 changes: 3 additions & 5 deletions broccoli-clean-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,10 @@ class CleanCSSFilter extends BroccoliPersistentFilter {
return super.build();
}

processString(contents, relativePath) {
async processString(contents, relativePath) {
let fullPath = path.resolve(this.inputPaths[0], relativePath);

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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"broccoli-persistent-filter": "^3.1.3",
"clean-css": "^3.4.28",
"clean-css": "^5.3.2",
"json-stable-stringify": "^1.0.1"
},
"devDependencies": {
Expand Down
11 changes: 9 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3118,14 +3118,21 @@ clean-css-promise@^0.1.0:
clean-css "^3.4.5"
pinkie-promise "^2.0.0"

clean-css@^3.4.28, clean-css@^3.4.5:
clean-css@^3.4.5:
version "3.4.28"
resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-3.4.28.tgz#bf1945e82fc808f55695e6ddeaec01400efd03ff"
integrity sha512-aTWyttSdI2mYi07kWqHi24NUU9YlELFKGOAgFzZjDN1064DMAOy2FBuoyGmkKRlXkbpXd0EVHmiVkbKhKoirTw==
dependencies:
commander "2.8.x"
source-map "0.4.x"

clean-css@^5.3.2:
version "5.3.2"
resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-5.3.2.tgz#70ecc7d4d4114921f5d298349ff86a31a9975224"
integrity sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==
dependencies:
source-map "~0.6.0"

clean-stack@^2.0.0, clean-stack@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b"
Expand Down Expand Up @@ -9671,7 +9678,7 @@ source-map@^0.5.6:
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==

source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0, source-map@~0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
Expand Down

0 comments on commit 1101263

Please sign in to comment.