You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 25, 2018. It is now read-only.
I believe PurifyCSS is having an issue parsing CSS, where we use an data:image/svg as the background URL. I've run it through the CSS validator, and it looks like the CSS is valid, however, I receive the following error when using this webpack plugin. When I remove the SVG from our code, the plugin works as expected.
If I add
styleExtensions: ['.scss'],
The problem goes away, but the CSS file isn't reduced at all.
Here is my implementation, in my webpack.config:
config.plugins.push(
new PurifyCSSPlugin({
paths: glob.sync(path.join(__dirname, '*.html')),
})
);
I believe PurifyCSS is having an issue parsing CSS, where we use an
data:image/svg
as the background URL. I've run it through the CSS validator, and it looks like the CSS is valid, however, I receive the following error when using this webpack plugin. When I remove the SVG from our code, the plugin works as expected.If I add
The problem goes away, but the CSS file isn't reduced at all.
Here is my implementation, in my webpack.config:
Here is the raw CSS being built:
Here is the validation message:
And lastly, here is the stacktrace:
The text was updated successfully, but these errors were encountered: