Class TaskProcessStylesheetCss

java.lang.Object
com.vaadin.flow.server.frontend.TaskProcessStylesheetCss
All Implemented Interfaces:
FallibleCommand

public class TaskProcessStylesheetCss extends Object implements FallibleCommand
Process CSS files in META-INF/resources for production build.

This task scans for @StyleSheet annotations and processes only the CSS files that are actually referenced. @import statements are inlined and CSS content minified. Files are processed in-place in the build output directory.

Only local CSS files (those starting with ./) are processed. External URLs (http/https) referenced in @StyleSheet annotations are not affected by this task.

For internal use only. May be renamed or removed in a future release.

Since:
25.0
  • Constructor Details

    • TaskProcessStylesheetCss

      public TaskProcessStylesheetCss(Options options)
      Creates a new task for processing stylesheet CSS files.
      Parameters:
      options - the task options
  • Method Details