JxCssBuilder class

Generates the JX stylesheet of a package from its sources.

The builder reads jx.yaml like jx build does (content, extensions, exclude, minify, reset, dark_mode, theme), then writes web/jx.css. It runs again whenever a scanned source or jx.yaml changes.

Options (in the project's build.yaml, under targets: $default: builders: jx_cli:jx_css: options:):

  • minify: overrides minify from jx.yaml, for example in release.

Packages listed under packages: in jx.yaml are located through .dart_tool/package_config.json and their lib/ Dart files are read through the build step.

Constructors

JxCssBuilder([BuilderOptions options = BuilderOptions.empty, JxPackageLister? listPackageFiles])

Properties

buildExtensions → Map<String, List<String>>
Mapping from input file extension to output file extensions.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildStep buildStep) → Future<void>
Generates the outputs for a given BuildStep.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

outputPath → const String