Merge pull request #320 from SjorsO/patch-1

fix bug in purgecss extractor
This commit is contained in:
Adam Wathan 2017-12-18 06:47:08 -05:00 committed by GitHub
commit 7c6e98dce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ let PurgecssPlugin = require("purgecss-webpack-plugin");
// https://github.com/FullHuman/purgecss#extractor
class TailwindExtractor {
static extract(content) {
return content.match(/[A-z0-9-:\/]+/g);
return content.match(/[A-z0-9-:\/]+/g) || [];
}
}