Ser-Gen / postcss-data-packer

PostCSS plugin to move an embedded data to separate file
MIT License
20 stars 2 forks source link

Change interface: replace dataFile with dest as an option #7

Closed Grawl closed 9 years ago

Grawl commented 9 years ago

I think will be cool to use your plugin with more plain and simple way.

Instead of creating new subtask (at least for Grunt) we can just specify dest path for CSS with data and remove all data from src by default.

data:{
    options:{
        map:false,
        processors:[
            dataPaker({
                dest:'css/main_data.css'
            })
        ]
    },
    src:'css/main.css'
}

Easy.

And if we will turn keepData to true then all data will stay in main.css

Ser-Gen commented 9 years ago

Looks great! I will look into it soon.

goschevski commented 9 years ago

Any updates on this?

Ser-Gen commented 9 years ago

Hope to make this in next two weeks.

Ser-Gen commented 9 years ago

Late for three days, but added in 1.1.0.

Grawl commented 9 years ago

Cool :sunglasses:

goschevski commented 9 years ago

Thanks!