webpack-contrib / purifycss-webpack

UNMAINTAINED, use https://github.com/FullHuman/purgecss-webpack-plugin
MIT License
772 stars 37 forks source link

Incompatible with style.css?hash #93

Open IAMtheIAM opened 7 years ago

IAMtheIAM commented 7 years ago

The plugin ignores css files if they have a hash attached to them.

/css/app.style.css?7ec000f0d0dbcb1dd347

If it was generated like this:

      new ExtractTextPlugin({
         filename: '/css/[name].style.css?[hash]',
      }),

I had customized the old API to accept the hash. Will you accept a PR for this new API to accept the hash? I basically did some regex to check for it and strip the hash off, so it could process the CSS file. Unless you know of a better way...

bebraw commented 7 years ago

Yeah, PR please.

IAMtheIAM commented 7 years ago

I got it done, forked and committed locally but it won't push to my fork. It just hangs on "running build...passed!" Using sourceTree... any ideas?

build_stuck

EDIT: got it, I had to delete .git/pre-push to get it to finish.

IAMtheIAM commented 7 years ago

PR submitted The CI test failed for some reason though, not sure why.