Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class StyleLoader
implements [frugal.Loader]<string>
import { StyleLoader } from "https://deno.land/x/frugal@0.5.0/packages/loader_style/mod.ts";

Style loader, able to output a css stylesheet from all style module in the pages dependency graph

Constructors

new
StyleLoader(config: Config)

Properties

name: string
readonly
test

Methods

generate(params: frugal.GenerateParams)

Given a list of assets, generate the css stylesheet in [public]/style/. The loader will do nothing if the list of assets as not changed since the last generation