We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
作者好!按照所给的配置报错class Extractor必须要用new关键字调用 然而new 这个Extractor类之后依旧构建失败,报错t不是函数 这个本人就一头雾水了!希望作者帮忙赐教解决一下
The text was updated successfully, but these errors were encountered:
找了一點線索 https://gist.github.com/josephan/45569c48ee4867237e89417aed283103 大概是因為purgecss-webpack-plugin從v1升上了v2的問題....
把這段
extractors: [ { extractor: class Extractor { static extract(content) { const validSection = content.replace( /<style([\s\S]*?)<\/style>+/gim, "" ); return ( validSection.match(/[A-Za-z0-9-_/:]*[A-Za-z0-9-_/]+/g) || [] ); } }, extensions: ["html", "vue"] } ],
改為
extractors: [ { extractor: (content) => { const validSection = content.replace(/<style([\s\S]*?)<\/style>+/gim, ""); return validSection.match(/[A-Za-z0-9-_/:]*[A-Za-z0-9-_/]+/g) || []; }, extensions: ["html", "vue"], }, ],
就可以了
Sorry, something went wrong.
No branches or pull requests
作者好!按照所给的配置报错class Extractor必须要用new关键字调用
然而new 这个Extractor类之后依旧构建失败,报错t不是函数 这个本人就一头雾水了!希望作者帮忙赐教解决一下
The text was updated successfully, but these errors were encountered: