Uncss Twitter Bootstrap Modal

I want to use the grunt "uncss" plugin. But I still miss some of the boot modal classes. 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']
        }
      }
    },

      

Does anyone know what classes I have missed to add to uncss?

+3


source to share


1 answer


Use regex to get all modal stuff:



/\.modal/

      

+3


source







All Articles