All features

Cherry Blossom feature

Frontend: SCSS

Coordinates SCSS compilation for registered theme assets.

Coordinates SCSS compilation for registered theme assets.

Capabilities and extension points

Initializes the SCSS facade.

Registers and handles all hooks

Compiles and writes generated CSS for an SCSS enqueue.

The enqueue supplies its source location, parent ownership, and autoprefixer preference. This writes generated files but does not enqueue their URLs.

  • param SCSS_Enqueue $enqueue SCSS enqueue being prepared.

Runs the compiler for a registered SCSS enqueue.

  • param SCSS_Enqueue $enqueue SCSS enqueue being prepared.
  • throws \RuntimeException When source or generated files cannot be read or written.

Reserved facade for compiling an arbitrary SCSS file.

This method currently performs no compilation. Registered assets should use compile_enqueue() through Style_SCSS.

  • param string $path SCSS path intended for compilation.

—————————————————-

Helpers ————————————————–

Source reference

This editable reference page is based on the PHP documentation in frontend/class-scss.php.