Open GertTimmerman opened 7 years ago
Same happens for me using Bulma and Vue.js.
I tracked the problem down to purify-css not handling :not
correctly. The problematic media query in Bulma that gets removed:
@media screen and (min-width: 769px), print
columns.sass:204
.columns:not(.is-desktop) {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
Upstream issue: https://github.com/purifycss/purifycss/issues/161
I think this issue is still not fixed, because PurifyCssPlugin still removes way too much Bulma CSS code.
I tried using the 'whitelilst' option but then my webpack build fails.
I have a clean project, i have installed bulma css which i import into a less file. When i run webpack, all the classes within media queries are ignored. I have googled it, and i found this bug in purifycss, but that bug is fixed in version 1.0.15
I am user purify-css version 1.2.6, purifycss-webpack version 0.7.0. Here is my code:
main.less
webpack.config.js
My index.php
without the purifycss-webpack plugin i get the css code of bulma, but with the plugin i get only a couple of lines css, without any media query