purifycss / grunt-purifycss

Remove unused CSS with the grunt build tool
MIT License
163 stars 21 forks source link

version 0.1.1 failing #24

Closed priyanshuch closed 8 years ago

priyanshuch commented 8 years ago

My config.

        purifycss: {
            options: {},
            target: {
                src: ['dist/index.html', 'dist/views/**/*.html'],
                css: 'dist/styles/*.css',
                dest: 'dist/styles/min.css'
            },
        },

Getting error: Warning: this.data.css.forEach is not a function.

kennyt commented 8 years ago

The value for the css property should be an array. so css: ['dist/styles/*.css']

priyanshuch commented 8 years ago

forEach it was obvious it was expecting an array :disappointed:
Thank @kennyt