Skip to content

Commit c6ec0af

Browse files
committed
chore: add runkit example, part III
1 parent b2dd321 commit c6ec0af

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

runkitExample.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
const detective = require('detective-postcss');
22

3-
// list of imported file names (ex: 'bla.css', 'foo.css', etc.)
4-
const content = `
3+
const css = `
54
.my_class {
65
background: url("myFile.png");
76
}`;
87

98
// or to also detect any url() references to images, fonts, etc.
10-
const allDependencies = detective(content, { url: true });
9+
const allDependencies = detective(css, { url: true });

0 commit comments

Comments
 (0)