A
A
Alexey Dzyuba2017-09-06 13:13:31
css
Alexey Dzyuba, 2017-09-06 13:13:31

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

3 answer(s)
A
Alan, 2019-05-18
Bogov @AVAVION

Do it with styling CSS.

A
arsenty, 2017-09-18
@Alex_Dz

Yes, cut. You figure out what classes will be needed and create a hidden element in the footer to which you assign them.

H
Homsa Toft, 2018-03-11
@kostein

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"]
    }))

Haven't tried for 4 yet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question