diff options
author | Chris Rebert <github@rebertia.com> | 2014-05-15 22:54:56 +0400 |
---|---|---|
committer | Chris Rebert <github@rebertia.com> | 2014-05-15 22:54:56 +0400 |
commit | 612a6ac06103fb289cdfff91c9adc219fb1331b0 (patch) | |
tree | 34e594023712a72432c22a750c1c8bca8eb96cd8 | |
parent | 5d92bf340726568afc46745a29ea4b90f2def54b (diff) |
Fix #16: correct examples in README
-rw-r--r-- | README.md | 31 |
1 files changed, 18 insertions, 13 deletions
@@ -33,11 +33,12 @@ In your project's Gruntfile, add a section named `cssflip` to the data object pa ```js grunt.initConfig({ cssflip: { - options: { - // Task-specific options go here. - }, your_target: { // Target-specific file lists and/or options go here. + options: { + ... + }, + files: ... } } }); @@ -68,10 +69,12 @@ In this example, two CSS files are flipped using css-flip's default settings. ```js grunt.initConfig({ cssflip: { - options: {}, - files: { - 'flipped-one.css': 'original-one.css', - 'flipped-two.css': 'original-two.css' + my_target: { + options: {}, + files: { + 'flipped-one.css': 'original-one.css', + 'flipped-two.css': 'original-two.css' + } } } }); @@ -83,12 +86,14 @@ In this example, the resulting flipped CSS files will also be slightly compresse ```js grunt.initConfig({ cssflip: { - options: { - compress: true - }, - files: { - 'flipped-one.min.css': 'original-one.css', - 'flipped-two.min.css': 'original-two.css' + my_target: { + options: { + compress: true + }, + files: { + 'flipped-one.min.css': 'original-one.css', + 'flipped-two.min.css': 'original-two.css' + } } } }); |