Closed newtriks closed 7 years ago
There's not much I can do about that in this plugin. Maybe better wait until Purify gets fixed.
@bebraw yup, agreed. I wanted to ensure it was reported and visible to others digging through dependencies of dependencies trying to work out the path to the original error 😃
https://www.npmjs.com/package/purify-css
Purify has been fixed & bumped to 1.2.1
@newtriks Can you close this issue once you check against the new version?
@bebraw yup 👍
I'm having the same issue, what is the recommended solution?
@rafaeleyng Which version of Purify are you using? I cannot fix the issue here but they published a fixed version.
I'm using:
└─┬ purifycss-webpack-plugin@2.0.3
└─┬ purify-css@1.1.9
└── uglifyjs@2.4.11
I understand that they published a fixed version, but I'm not sure how to use that since my dependency of purify-css is through purifycss-webpack
@rafaeleyng try to use npm cache clear
and reinstall node_modules
@rafaeleyng Ok, I think I'll push Purify as a peer dependency so you can specify the exact version.
Just pushed it to peer dependency. @evilebottnawi's advice is valid too but it's better to manage this through a peer.
@bebraw Are you going to make a npm release? I'm not sure what should I do
@rafaeleyng Already done. Does it still fail for you?
@bebraw I'm really confused now.
As shown in my comment above, I'm using purifycss-webpack-plugin@2.0.3
. I just checked https://www.npmjs.com/package/purifycss-webpack-plugin and the latest release there is 2.0.3
. The link to the git repo in that page refers to this repo, but here the latest version (that was generated 2 hours ago) is 0.8.0. It seems to be 2 unrelated libraries, but the npm package links to this git repo. So I'm still clueless about what to do.
By the way, thank you for all the patience.
I just saw that this package also exists https://www.npmjs.com/package/purifycss-webpack, that seems to be the correct. Trying this one instead.
@rafaeleyng purifycss-webpack-plugin is something separate (deprecated). I had to rename a plugin to continue its development (the original author disappeared and npm took four weeks to transfer, I needed the plugin sooner than that).
@bebraw It seems to work now. I'm having configuration problems now, but the installation seems to be working fine. Thanks!
@rafaeleyng The configuration is very different, yeah.
Time to close this.
Based on this libs dependency on
purifycss
,uglifyjs
depreciation breaks build. See: