| Conditions | 2 |
| Total Lines | 9 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import postcss from "postcss" |
||
| 13 | |||
| 14 | async function produce(sources: string[]) { |
||
| 15 | for (let i = sources.length; i--;) { |
||
| 16 | const p = sources[i] |
||
| 17 | , name = p.replace(/\/.*$/, "") |
||
| 18 | , path = require.resolve(p) |
||
| 19 | |||
| 20 | await producer.process(readFileSync(path).toString(), { |
||
| 21 | from: `${__dirname}/${name}.css` |
||
| 22 | }) |
||
| 24 | } |