Skip to content

Commit

Permalink
Removed 'dest' key being used in examples (#461)
Browse files Browse the repository at this point in the history
The `dest` key still appeared in the examples eventhough it is not documented in the full options. A test run on a project resulted in an error when using it.
  • Loading branch information
leifniem authored Aug 21, 2020
1 parent 4cba70c commit f5b551f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ _note:_ (your final output will be minified as to eliminate duplicate rule inclu
critical.generate({
base: 'test/',
src: 'index.html',
dest: 'styles/main.css',
target: {
css: 'styles/main.css',
},
dimensions: [
{
height: 200,
Expand All @@ -219,7 +221,9 @@ This is a useful option when you e.g. want to defer loading of webfonts or backg
critical.generate({
base: 'test/',
src: 'index.html',
dest: 'styles/main.css',
target: {
css: 'styles/main.css',
},
ignore: {
atrule: ['@font-face'],
decl: (node, value) => /url\(/.test(value),
Expand All @@ -233,7 +237,9 @@ critical.generate({
critical.generate({
base: 'test/',
src: 'index.html',
dest: 'styles/main.css',
target: {
css: 'styles/main.css',
},
rebase: {
from: '/styles/main.css',
to: '/folder/subfolder/index.html',
Expand All @@ -245,7 +251,9 @@ critical.generate({
critical.generate({
base: 'test/',
src: 'index.html',
dest: 'styles/main.css',
target: {
css: 'styles/main.css',
},
rebase: asset => `https://my-cdn.com${asset.absolutePath}`,
});
```
Expand Down

0 comments on commit f5b551f

Please sign in to comment.