danielhusar / grunt-pleeease

Grunt plugin for postprocess CSS with ease.
MIT License
23 stars 2 forks source link

Can you provide example usage with all the options? #1

Closed metaColin closed 10 years ago

metaColin commented 10 years ago

Hey,

Can you provide example usage with all the options?

I've been trying to use grunt-pleease with a bunch of options, and but am not getting any output files. I looked at the options documentation here: http://pleeease.io/docs/ but I suspect I am getting the syntax just a little wrong.

Maybe you can verify if either of these usage examples are correct:

grunt.initConfig({
             pleeease: {
                custom: {
                    options: {
                        autoprefixer: {
                            browsers: ['last 2 version', 'ie 7', 'ie 8', 'ie 9']
                        },
                        filters: {
                            oldIE: true
                        },
                        rem: {
                            rem: ["16px", {replace: true}]
                        },
                        opacity: true,
                        minifier: false
                    },
                    files: {
                       'assets/css/main.css': 'assets/css/main.css',
                       'assets/css/ie.css': 'assets/css/ie.css'
                    }
                }
            },
})
grunt.initConfig({
             pleeease: {
                custom: {
                    options: {
                        in: "assets/css/main.css",
                        out: "assets/css/main.css",
                        autoprefixer: {
                            browsers: ['last 2 version', 'ie 7', 'ie 8', 'ie 9']
                        },
                        filters: {
                            oldIE: true
                        },
                        rem: {
                            rem: ["16px", {replace: true}]
                        },
                        opacity: true,
                        minifier: false
                    },
                }
            },
})
danielhusar commented 10 years ago

Hi,

I just tried to add some extra custom option to test and its working fine. Check out: https://github.com/danielhusar/grunt-pleeease/blob/master/Gruntfile.js

Can you try to pass those option directly to pleeease if it will be working?

danielhusar commented 10 years ago

Hi,

so I found your issue. Your rem settings is wrong:

rem: {
  rem: ["16px", {replace: true}]
},

It should be:

rem: ["16px", {replace: true}]