Package com.vaadin.flow.server.frontend
Class TaskProcessStylesheetCss
java.lang.Object
com.vaadin.flow.server.frontend.TaskProcessStylesheetCss
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionTaskProcessStylesheetCss(Options options) Creates a new task for processing stylesheet CSS files. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.server.frontend.FallibleCommand
setGeneratedFileSupport
-
Constructor Details
-
TaskProcessStylesheetCss
Creates a new task for processing stylesheet CSS files.- Parameters:
options- the task options
-
-
Method Details
-
execute
Description copied from interface:FallibleCommandRuns the given command.If execution fails then the command may throw an exception which may give a message and a cause of the failure.
- Specified by:
executein interfaceFallibleCommand- Throws:
ExecutionFailedException- if there is an execution error
-