3

I want to make use of the grunt plugin "uncss". But I still misses some classes of the bootstrap modal. Right now my grunt setup for uncss looks like this:

uncss: {
      dist: {
        options: {
          ignore: [
            ".fade",
            ".fade.in",
            ".collapse",
            ".collapse.in",
            ".collapsing",
            ".alert-danger",
            // Modal
            ".modal",
            ".modal.fade.in",
            ".modal-dialog",
            ".modal-scrollbar-measure",
            ".modal-backdrop.fade",
            ".modal-backdrop.in",
            ".modal.fade.modal-dialog",
            ".modal.in.modal-dialog",
            ".modal-open",
            ".in",
            ".modal-backdrop",
            /\.open/
          ]
        },
        files: {
          'css/app.css': ['index.html']
        }
      }
    },

Someone know which classes I missed to add to uncss?

YvesLeBorg
  • 9,070
  • 8
  • 35
  • 48
Bene
  • 1,251
  • 6
  • 19
  • 34

1 Answers1

3

Use a regular expression to pick up all of the modal things:

/\.modal/
John Vinopal
  • 551
  • 4
  • 11