Skip to content

@vanilla-extract/[email protected]

Compare
Choose a tag to compare
@vanilla-extract-ci vanilla-extract-ci released this 30 Jun 04:39
· 6 commits to master since this release
c907c10

Minor Changes

  • #1614 4e92cce Thanks @askoufis! - Add new getAllCss API

    The Compiler class now provides a getAllCss method that returns all the CSS currently stored by the compiler.

    EXAMPLE USAGE:

    import { createCompiler } from '@vanilla-extract/compiler';
    
    const compiler = createCompiler({
      root: process.cwd()
    });
    
    await compiler.processVanillaFile('foo.css.ts');
    await compiler.processVanillaFile('bar.css.ts');
    
    // Contains all CSS created by `foo.css.ts` and `bar.css.ts`
    const allCss = compiler.getAllCss();