Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/grunt-css-flip.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <github@rebertia.com>2014-05-15 22:54:56 +0400
committerChris Rebert <github@rebertia.com>2014-05-15 22:54:56 +0400
commit612a6ac06103fb289cdfff91c9adc219fb1331b0 (patch)
tree34e594023712a72432c22a750c1c8bca8eb96cd8
parent5d92bf340726568afc46745a29ea4b90f2def54b (diff)
Fix #16: correct examples in README
-rw-r--r--README.md31
1 files changed, 18 insertions, 13 deletions
diff --git a/README.md b/README.md
index 404b5ae..dafefbb 100644
--- a/README.md
+++ b/README.md
@@ -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'
+ }
}
}
});