parse css file
url or path
load file as stream
Error file not found
Example:
import {parseFile} from '@tbela99/css-parser/web'; // remote filelet result = await parseFile('https://docs.deno.com/styles.css');console.log(result.ast);// local fileresult = await parseFile('./css/styles.css');console.log(result.ast); Copy
import {parseFile} from '@tbela99/css-parser/web'; // remote filelet result = await parseFile('https://docs.deno.com/styles.css');console.log(result.ast);// local fileresult = await parseFile('./css/styles.css');console.log(result.ast);
parse css file