-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
Toast css is wiped when using purgecss #1086
Comments
I am having the same problem. Also the Select with Fontawesome shows the icon to the right and outside of the Select box
|
Purgecss has a guide on how to use it with Vue. https://www.purgecss.com/guides/vue I just followed the instructions and everything worked! Edit: |
Note that whitelisting is required since some class names are dynamically constructed, such as @jtommy is support for PurgeCSS something that Buefy could be interested in? |
@pera sure, you are welcome! |
@pera please open a new issue in order to discuss about it ;) |
hi @Djiit , where do I have to wrap the buefy import? |
Overview of the problem
Buefy version: 0.7.0
Vuejs version: 2.5.17
OS/Browser: MacOS Mojave / Electron 3.0;
Description
Hi there ! Not sure if it is a bug related to Buefy directly but I didn't encounter it with other libraries.
Please tell me if I can provide you with more info or test case.
Steps to reproduce
Add Buefy to your project.
Add PurgeCSS.
Toasts are no more styled (might the the case of other non-bulma components.
Here is my
postcss.config.js
:Expected behavior
Toasts are still styled like the rest of buefy elements.
Actual behavior
Toasts are displayed without any CSS a the end of the page.
Note: If your wrap the Buefy import between
/* purgecss start ignore */
and/* purgecss end ignore */
; that's my workaround for now.The text was updated successfully, but these errors were encountered: