Skip to content

Commit

Permalink
Update peerDependencies
Browse files Browse the repository at this point in the history
Allow using `cssnano` v6

```bash
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: htmlnano@2.0.3
npm ERR! Found: cssnano@6.0.0
npm ERR! node_modules/cssnano
npm ERR!   cssnano@"^6.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional cssnano@"^5.0.11" from htmlnano@2.0.3
npm ERR! node_modules/htmlnano
npm ERR!   htmlnano@"^2.0.3" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: cssnano@5.1.15
npm ERR! node_modules/cssnano
npm ERR!   peerOptional cssnano@"^5.0.11" from htmlnano@2.0.3
npm ERR!   node_modules/htmlnano
npm ERR!     htmlnano@"^2.0.3" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
```
  • Loading branch information
shoonia committed Apr 14, 2023
1 parent be558f0 commit e3b91e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"uncss": "^0.17.3"
},
"peerDependencies": {
"cssnano": "^5.0.11",
"cssnano": "^5.0.11 || ^6.0.0",
"postcss": "^8.3.11",
"purgecss": "^5.0.0",
"relateurl": "^0.2.7",
Expand Down

0 comments on commit e3b91e4

Please sign in to comment.