Answer the question
In order to leave comments, you need to log in
Uncss for Bootstrap?
I have concerns that uncss will cut out additional bootstrap styles that it will need for animations, modals, etc. Are my fears correct?
If you can, tell or show, please, how you have uncss configured in Galp)
Answer the question
In order to leave comments, you need to log in
Yes, cut. You figure out what classes will be needed and create a hidden element in the footer to which you assign them.
for Bootstrap 3 this option was:
.pipe(uncss({
html: ["dev/index.html", "prod/index.html"],
ignore: [/\w\.in/,
".fade",
".collapse",
".collapsing",
/(#|\.)navbar(\-[a-zA-Z]+)?/,
/(#|\.)dropdown(\-[a-zA-Z]+)?/,
/(#|\.)(open)/,
".modal",
".modal.fade.in",
".modal-dialog",
".modal-document",
".modal-scrollbar-measure",
".modal-backdrop.fade",
".modal-backdrop.in",
".modal.fade.modal-dialog",
".modal.in.modal-dialog",
".modal-open",
".in",
".modal-backdrop"]
}))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question