(css, from, to)
| 39 | }); |
| 40 | |
| 41 | function runPostCss(css, from, to) { |
| 42 | postcss() |
| 43 | .use(url({ |
| 44 | url: 'inline' |
| 45 | })) |
| 46 | .process(css, { |
| 47 | from: from, |
| 48 | to: to |
| 49 | }).then(result => { |
| 50 | fs.writeFileSync(outputPath, result.css); |
| 51 | console.log(`Finished: ${theme} -> ${path.resolve(outputPath)}`); |
| 52 | }); |
| 53 | } |